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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logout

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
US
I have this problem with my logout.

once in a protected page...I have a link to logout.
the logout page:
<cfset Session.LoginID = &quot;false&quot;
and <cfcookie name=&quot;LoginID&quot; expires=&quot;NOW&quot;>

and then it takes me back to the login page. but when i hit the back button....it goes back to that secure page
However, if i click on refresh...then that secure page will say I have to login again.
It looks to me that the Session.LoginID was set to false from the logout page but the cache information for that secured page was still in the browser.
How do i go about deleting the cached information?

 
You need to use some Javascript to delete the page from history, or you need to stop the page from caching in the first place.

1. With javascript
replace(&quot;URL&quot;)
Will load a new document into the reference window, replacing the last object in history, so that the back button cannot go back to that page.
Works for NS3+ and IE4+

2. No caching
<META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;Mon, 06 Jan 1990 00:00:01 GMT&quot;>



Russ Michaels
russ@satachi.com
For my personal book recommendations visit
 
InternetOverlord

I don't understand how to use that Javascript function.
Can you be a little more specific?

Thanks
 
I am having the same problem. I used 2nd option mentioned by InternetOverlord. It worked nicely in Netscape but is not working in IE5.

Any solution for IE5?

Ketan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top