Click to See Complete Forum and Search --> : logout page problem?


mshen2004
08-16-2004, 10:12 AM
Hi

I build a logout page with ASP,I first clear all the session variables and redirect to login page.but I still can go back and see the protected contects with "back" button in broswer.

I want to clear all the history/or disable in broswer with javascript after logout my account.Please give me a idea how to do it.

Thanks

slyfox
08-17-2004, 07:20 PM
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<%
Session("whatever");
Session.Abandon();
Response.Redirect("../login.asp");
%>

After this theres not much you can do except to live with it...

Unless your whole process happened in a popup window with the back-button and address-bar removed... OR close the child window with javascript when logging out, then user will be on the parent page first started at.

Hope it helps...