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

I recently finished developing a website that has a control panel for the Admin.I Login and add some info,so sometimes they are added and sometimes i am redirected to the Login page.Knowing that this happens in 1 minute only which means the session did not finish yet since i specified timeout to 30 in web.config.So can this be related to forms authentication timeout which is also set to 30 mins ?

Thanks in advance.
Posted
Updated 4-Jul-11 22:21pm
v3

You can set how long the session takes to expire in your web.config. You can also set a breakpoint in your code, to see if your code is somehow redirecting before you think it should.
 
Share this answer
 
Comments
mhamad zarif 5-Jul-11 4:04am    
Hi,i put the timeout to 6o but still having the same issue
First question is: is this happening in you Visual Studio?
if not, it might be IIS issue.

for example,
if IIS thinks it detected a dead lock or if server memory usage is over 60% (this is default value) the application will recycle, which will lead to killing your session.

Hope it helped
 
Share this answer
 
Comments
mhamad zarif 5-Jul-11 4:23am    
Actually this is happening online.Since i already put the website online for testing.But when i was testing it in visual studio this was not happening.
I fixed it by adding this to the web.config :

machineKey validationKey="..." decryptionKey="..." validation="SHA1" decryption="AES"
 
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