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: 1792 | Points: 40
Answer:

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

<system.web>

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


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
Akiii


| Alert Moderator 

Comments or Responses

Login to post response