ebco
12-22-2003, 09:44 AM
I want to maintain session for a particular section or folder for 20 mins or till the browser close whichever is earlier. after that after that if user type that url it should go to login page.
My code (web.config) is mentioned below which is working only in case if I press logout button, where i am doing FormsAuthentication.SignOut();
What is the way to solve this problem?
<authentication mode="Forms">
<forms loginUrl="login/login.aspx" name="CookieName" path="/" timeout="20" >
</forms>
</authentication>
<sessionState
cookieless="false"
/>
<location path="foldername" >
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
My code (web.config) is mentioned below which is working only in case if I press logout button, where i am doing FormsAuthentication.SignOut();
What is the way to solve this problem?
<authentication mode="Forms">
<forms loginUrl="login/login.aspx" name="CookieName" path="/" timeout="20" >
</forms>
</authentication>
<sessionState
cookieless="false"
/>
<location path="foldername" >
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>