Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session variables
Message
From
22/02/2011 08:32:14
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01501064
Message ID:
01501238
Views:
39
>>>>Hi
>>>>
>>>>If I do
>>>>
>>>>HttpContext.Current.Session("DefaultCountryList") = country_list
>>>>
>>>>and I can see in the debugger that this has been populated with a list of countries
>>>>
>>>>then the next asp page does
>>>>
>>>>Me.m_Countries = HttpContext.Current.Session("DefaultCountryList")
>>>>
>>>>why is HttpContext.Current.Session("DefaultCountryList") empty
>>>>
>>>>I assumed that it would remain populated .
>>>>
>>>>Am I wrong.
>>>
>>>Right in theory. Obvious question : Are you sure it's the same session ?
>>
>>Its a good question.
>>
>>It should be. But what could stop it being so ?
>>
>>The session variables should be set by the first page loaded.
>>
>>On the first page there is a menu and the page loaded from that find the session variable is empty.
>
>Just seen that I somehow managed to post to myself earlier so you may not have seen the reply. Questions were:
>
>Is all session state info missing or is it just the DefaultCountryList?
>Can you check the SesssionId ?
>At what point in the page cycle is 'Me.m_Countries = HttpContext.Current.Session("DefaultCountryList")' executed?
>
>Enjoying 'East of Nowhere' greatly btw. (it was your recommendation wasn't it?)

Hi Viv glad you're enjoying the book (i wonder how far through it you are)

I found where my session variables where getting reset (eventually)

thanks to you and others for your help.
Previous
Reply
Map
View

Click here to load this message in the networking platform