In Asp.Net Forms Authentication, how can you specify the timeout property in web.config file ?

 Posted by Akiii on 5/9/2012 | Category: ASP.NET Interview questions | Views: 1524 | Points: 40

In web.config file, you specify the timeout property as :-


<authentication mode="Forms">
<forms name="Deviant_Akiii" loginUrl="login.aspx" timeout="30" defaultUrl="default.aspx" cookieless="UseCookies" slidingExpiration="true">

In the above code, the timeout of the cookie is 30 minutes . The name property in the form tag is the name of the cookie (that is) Deviant_Akiii

Thanks and Regards

| Alert Moderator 

Comments or Responses

Login to post response