Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session variables
Message
From
21/02/2011 11:35:34
 
 
To
21/02/2011 10:10:22
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01501064
Message ID:
01501093
Views:
47
>>>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?)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform