all groups > asp.net building controls > january 2007 >
You're in the

asp.net building controls

group:

Page seems to be remembering HttpSessionState


Page seems to be remembering HttpSessionState Nathan Sokalski
1/14/2007 8:50:20 PM
asp.net building controls:
I have a page that determines some of what to display based on
HttpSessionState. When I go to it the first time, it displays everything the
way I would expect. Then I go to another page on my site (by clicking links,
so I am still using the same browser window), which calls Session.Abandon()
to start a new Session. Then when I click a link to go to the page that uses
the HttpSessionState, it still uses the values that were in it when I left.
If I then click the browser's Refresh button, it uses the values from the
new Session. What do I need to do to make the user not need to click the
Refresh button? Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

Re: Page seems to be remembering HttpSessionState Gaurav Vaish (MasterGaurav)
1/15/2007 7:48:41 AM
It's the browser issue.. ensure that the caching is turned off.

--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujinionline.com
-----------------------------------------


[quoted text, click to view]

Re: Page seems to be remembering HttpSessionState Joerg Jooss
1/19/2007 7:52:06 PM
Thus wrote Nathan,

[quoted text, click to view]

Mark the page uncacheable. Either set the page direction <%@ OutputCache
Location="None" %> or call Response.Cache.SetCacheability(HttpCacheability.NoCache).

Cheers,
--
Joerg Jooss
news-reply@joergjooss.de

AddThis Social Bookmark Button