Click here to Skip to main content
15,611,246 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've got the following code in a Master page:

if ((SubmitterRecord)Session["CurrentUser"] != null)
               SubmitterRecord SubmitterRec = new SubmitterRecord();
               SubmitterRec = (SubmitterRecord)Session["CurrentUser"];
               LiteralLoggedIn.Text = SubmitterRec.UserID;
               userpanel.Visible = true;
               loginpanel.Visible = false;
               loginpanel.Visible = true;
               userpanel.Visible = false;

This has worked "flawlessly" in development but it seems to be losing the session state when I've installed this on my ISP's servers. I can "login" and leave the page up for 10 minutes and then go to another page; when that page displays it's as though I haven't logged in. I've installed this on two different ISP's (one of them and get the same problem. I've also added sessionState timeout="60" in the web.config, but that doesn't help either.

Any help would be appreciated!

Thank you,

Dennis Derringer
Updated 12-Apr-11 16:46pm
Pong D. Panda 12-Apr-11 22:43pm    
What's your mode on your SessionState?
Dennis Derringer 13-Apr-11 17:09pm    
I'm using (first time) and I cannot find any setting for changing the mode of the SessionState.
Ankur\m/ 13-Apr-11 0:35am    
Does the ISP uses a web-garden server architecture?
Dennis Derringer 13-Apr-11 17:09pm    
Not sure.... it's

1 solution

Look at those answers for that question which was asked yesterday.

session time out automatically in web application[^]
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