Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

In a project of mine I have given Session timeout 60 and Forms authentication timeout 120.

But the user is redirected to the login page way before any of the above time (most of the times it is around 10).

I want to know if it is a problem from server.
here is the code.

XML
<authentication mode="Forms">
<forms loginUrl="Login.aspx" timeout="120">
<credentials passwordFormat="Clear">
</credentials>
</forms>
</authentication>
<sessionState mode="InProc" timeout="60" cookieless="false"/>



Thanks In Advance
Posted
Updated 2-Jun-11 21:42pm
v3
Comments
Dalek Dave 3-Jun-11 3:39am    
Edited for Grammar and Readability.

May be, May not be.
It may be a code problem.

What say you post the relevant portion of code and we can take a look?
 
Share this answer
 
Comments
ThomasCarmen 24-Jun-11 20:01pm    
Tell 'em
Look at these

Session Timeout Problem[^]

It's an another way to resolve your issue(with out increasing session time out).
How To Keep ASP.NET Session Alive[^]
 
Share this answer
 
Comments
Espen Harlinn 5-Jun-11 6:46am    
Nice links, my 5
thatraja 6-Jun-11 23:23pm    
Thank you Espen, Now I can chase well :)
By default session is 20 min but you can change that:

Session.Timeout = 60

Or

<system.web>     <authentication mode="Forms">           <forms timeout="50"/>     </authentication>      <sessionState timeout="60"  /> </system.web> 
 
Share this answer
 
I would advice to read this CodeProject article, it explains those concepts pretty clearly:
OOP and UML[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900