no timeout in form authentiation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey, I'm trying to configure it so when users log in they don't ever have to
log in again from the same machine (okay, maybe within a month or something).
is there a way to do this with the standard asp.net 2.0 authentication
framework? Any help is appreciated
 
Drag a login control into your form and enable RememberMeSet property!
That's all!
 
I've tried this, and it will "Remember me" for about 30 minutes (aka what the
timeout var is set to) but it will forget me after that.
 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000022.asp

To configure forms authentication, set the <authentication> element's mode
attribute to "Forms" and then configure your application's Web.config file
as shown in the following example.

<authentication mode="Forms">
<forms loginUrl="Login.aspx"
protection="All"
timeout="30"
name="AppNameCookie"
path="/FormsAuth"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseCookies"
enableCrossAppRedirects="false"/>
</authentication>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top