In ASP.NET, how can I keep login state for two weeks?
<p>I make a website and upload it to a shared hosting.  I use default ASP.NET Login control to login,  but sometimes I have to require login again even if I have checked "Remember me next time".
I hope I can access member webpage during two weeks without login, how can I do that? Thanks!</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
 &lt;head runat="server"&gt;
 &lt;title&gt;&lt;/title&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;form id="form1" runat="server"&gt;
 &lt;div&gt;

&lt;asp:Login ID="Login1" runat="server"&gt;
 &lt;/asp:Login&gt;

&lt;/div&gt;
 &lt;/form&gt;
 &lt;/body&gt;
 &lt;/html&gt;



&lt;membership&gt;
 &lt;providers&gt;
 &lt;clear/&gt;
 &lt;add name="AspNetSqlMembershipProvider"
 type="System.Web.Security.SqlMembershipProvider"
 connectionStringName="MyConnect"
 enablePasswordRetrieval="false"
 enablePasswordReset="true"
 requiresUniqueEmail="true"
 maxInvalidPasswordAttempts="10"
 minRequiredPasswordLength="1"
 minRequiredNonalphanumericCharacters="0"
 passwordAttemptWindow="10"
 applicationName="/"
 requiresQuestionAndAnswer="true"
 /&gt;
 &lt;/providers&gt;
 &lt;/membership&gt;
</code></pre>
