I have a login page which requires all users to login everytime they visit,
the remember me feature isn't working. We all have cookies and js enabled.
Any suggestions on how to diagnose this?
My login aspx:
<asp:Login ID="Login1" runat="server" BackColor="#FFFFCC"
BorderColor="#5400A8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px
"
Font-Names="Verdana,Arial" Font-Size="12px" ForeColor="#333333"
MembershipProvider="myMembershipProvider" PasswordRecoveryText="Can't
remember your password?" PasswordRecoveryUrl="PwdRecovery.aspx"
Height="150px" Width="245px"> <TitleTextStyle BackColor="#5400A8"
Font-Bold="True" Font-Size="14px" ForeColor="White" />
<InstructionTextStyle Font-Italic="True" ForeColor="#5400A8" />
<TextBoxStyle Font-Size="14px" />
<LoginButtonStyle Font-Names="Verdana" Font-Size="12px" ForeColor="#5400A8"
/>
My web config:
<authentication mode="Forms" >
<forms name="CCAuth"
loginUrl="myLogin.aspx"
timeout="20"
slidingExpiration="true"
cookieless="AutoDetect"
protection="All"
requireSSL="false"
enableCrossAppRedirects="false"
defaultUrl="default.asp"
path="/" />
</authentication>
<membership defaultProvider="myMembershipProvider">
<providers>
<add name="myMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="myDB"
applicationName="/"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Hashed"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
maxInvalidPasswordAttempts="10" />
</providers>
</membership>Dabbler <Dabbler@.discussions.microsoft.com>'s wild thoughts
were released on Thu, 29 Jun 2006 06:54:02 -0700 bearing the
following fruit:
>I have a login page which requires all users to login everytime they visit,
>the remember me feature isn't working. We all have cookies and js enabled.
IIRC the timeout was changed thus rendering the 'remember
me' feature useless, so you need to set a timeout in your
web config to get it working again.
somthing like
<authentication mode="Forms">
<forms timeout="43200"/>
</authentication>
J
>Any suggestions on how to diagnose this?
>
>My login aspx:
><asp:Login ID="Login1" runat="server" BackColor="#FFFFCC"
>BorderColor="#5400A8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1p
x"
>Font-Names="Verdana,Arial" Font-Size="12px" ForeColor="#333333"
>MembershipProvider="myMembershipProvider" PasswordRecoveryText="Can't
>remember your password?" PasswordRecoveryUrl="PwdRecovery.aspx"
>Height="150px" Width="245px"> <TitleTextStyle BackColor="#5400A8"
>Font-Bold="True" Font-Size="14px" ForeColor="White" />
><InstructionTextStyle Font-Italic="True" ForeColor="#5400A8" />
><TextBoxStyle Font-Size="14px" />
><LoginButtonStyle Font-Names="Verdana" Font-Size="12px" ForeColor="#5400A8"
/>
>My web config:
> <authentication mode="Forms" >
> <forms name="CCAuth"
> loginUrl="myLogin.aspx"
> timeout="20"
> slidingExpiration="true"
> cookieless="AutoDetect"
> protection="All"
> requireSSL="false"
> enableCrossAppRedirects="false"
> defaultUrl="default.asp"
> path="/" />
> </authentication>
> <membership defaultProvider="myMembershipProvider">
> <providers>
> <add name="myMembershipProvider"
> type="System.Web.Security.SqlMembershipProvider"
> connectionStringName="myDB"
> applicationName="/"
> enablePasswordRetrieval="false"
> enablePasswordReset="true"
> requiresQuestionAndAnswer="true"
> requiresUniqueEmail="true"
> passwordFormat="Hashed"
> minRequiredPasswordLength="6"
> minRequiredNonalphanumericCharacters="0"
> maxInvalidPasswordAttempts="10" />
> </providers>
> </membership>
Jan Hyde (VB MVP)
"Caring for Fine Wood" by Lindsey Doyle (David Reihmer)
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment