Click here to Skip to main content
15,906,106 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:

C#
if ((SubmitterRecord)Session["CurrentUser"] != null)
           {
               SubmitterRecord SubmitterRec = new SubmitterRecord();
               SubmitterRec = (SubmitterRecord)Session["CurrentUser"];
               LiteralLoggedIn.Text = SubmitterRec.UserID;
               userpanel.Visible = true;
               loginpanel.Visible = false;
           }
           else
           {
               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 godaddy.com) 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
Posted
Updated 12-Apr-11 16:46pm
v2
Comments
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 Godaddy.com (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 Godaddy.com

1 solution

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

session time out automatically in asp.net 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