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!

Refreshing Default PAge

Status
Not open for further replies.

geocabs

IS-IT--Management
Jul 6, 2000
24
GB
I have a default page, default.asp which normally shouldnt change however when my user logs out ie their seesion variable is nulled I send them back to the default page but their logon information is still displayed since the page hasnt been refreshed.

I need to know how to force a page refresh at this time only.

I think its something to do with page expiry ????
Any ideas anyone ?
 
How do you "send them back" to the default page??

Using Response.Redirect ... should reload the page you redirect to.
Simon
 
Response.redirect did not work I am afraid
ANy idea how to debug this ?
 
Add these lines after <%Option Explit%>

<% Response.Expires = 0%>
<% Response.ExpiresAbsolute = Now - 1%>

They work for me.
 
I have had Response.Redirect working without either of the suggestions in the previous 2 posts in place, but I think it is always a good idea to include them.
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top