Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a web application in ASP.NET 4.0. using ASP.NET membership.
The webapp is running perfectly well on local machine, but when I host the web application on a remote web server, the session times out in around 1 min. The membership module thus redirects to my home page for any page request after timeout.

I have tested using Cookies manager, the cookies from my remote site does not expire.
Timeout period on IIS is set to default 20 minutes.


Here is my web.config: [removed]
Posted
Updated 6-Feb-12 10:56am
v2
Comments
[no name] 6-Feb-12 16:57pm    
Don't include your entire file, only the relevant parts and when you do include something, FORMAT it.
Sriram Chitturi 6-Feb-12 19:42pm    
Give details of your web.config and settings on your Application and IIS server
Steve Wellens 6-Feb-12 20:59pm    
If the web.config is used in a working environment, it is unlikely the problem is there. How are you setting the IIS timeout? The Asp.net Group, Session State page?
ZurdoDev 7-Feb-12 10:23am    
It likely isn't timing out but has an error somewhere. Look in your event log for errors or make sure this is in its own app pool. Something else is likely knocking it out.

1 solution

Hi,

Try to set cookies in your browser and assign values from cookies to session.

Hope this will help you.
 
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