Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Losing Session State
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00761862
Message ID:
00761898
Vues:
20
>>I populate some session state variables with user information during login process. It shows up just fine in my default.aspx page. However, as soon as I click on a link in the default page, session state variables go away. The next page cannot see them. In the watch window I get a message that says 'session.get_item returned null. I also have the sessionID displayed in the watch window and it doesn't change so the actual session is still there.
>>
>>I have set cookies setting in session state of the web.config file to both true and false without an difference in this situation.
>>
>>Dick Harrold
>
>I don't use get item... I do this on the page load on our Default Page, after the login page, to show the user name of who is logged in:
>
>// Put user code to initialize the page here
>this.lblLoginName.Text = Session["fname"]+" "+Session["lname"];
>this.lblLoginTime.Text = Session["logintime"].ToString();
>
>BOb

Thanks, Bob. I don't explicitly call get_item either, I use the same methodology that you do. In the watch window, it shows the get_item reference so it must be an internal function that using your method actually calls.

This is really strange to me because this is my third ADP.NET application and I have used essentially the same code in the other two without any difficulty.

Dick Harrold
=========================================
Dick Harrold [DickHarrold@Yahoo.com]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform