Click here to Skip to main content
13,507,158 members
Rate this:
Please Sign up or sign in to vote.
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 6-Feb-12 10:35am
Updated 6-Feb-12 10:56am
Mark Nischalke 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 Group, Session State page?
ryanb31 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


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

Hope this will help you.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180417.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100