Click here to Skip to main content
Sign Up to vote bad
good
See more: IIS7ASP.Net-4.0
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:35
Edited 6 Feb '12 - 10:56

Comments
Mark Nischalke - 6 Feb '12 - 16:57
Don't include your entire file, only the relevant parts and when you do include something, FORMAT it.
Sriram Chitturi - 6 Feb '12 - 19:42
Give details of your web.config and settings on your Application and IIS server
Steve Wellens - 6 Feb '12 - 20:59
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?
ryanb31 - 7 Feb '12 - 10:23
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.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 368
1 OriginalGriff 261
2 Mayur_Panchal 153
3 Mohammed Hameed 145
4 Dave Kreskowiak 125
0 Sergey Alexandrovich Kryukov 8,146
1 OriginalGriff 6,236
2 CPallini 3,482
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid