Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem refreshing a Session variable, please help

Status
Not open for further replies.

NegreteO

Programmer
Apr 23, 2003
54
US
Hi,

I have a Session Variable that its value is changed and then a page is recalled by using a Response.Redirect but when the page is called the Session variable doesn't show its new value unless if I hit the refresh button. It seems that the information is not being sent to the page. How can I fix this issue because I really need the page to be refreshed automatically and not by hitting the refresh button

Hope you can help me
 
This is probably a browser caching issue. Try adding these lines to the beginning of the misbehaving page:

Response.Expires = -10000
Response.ExpiresAbsolute = Now() - 1
Response.CacheControl = "no-cache
 
It works!!!!

Thanks a lot I really apreciatte it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top