Print Page | Close Window

Back button not allowed after logged out

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3569
Printed Date: 30 March 2026 at 3:03am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Back button not allowed after logged out
Posted By: Awangku
Subject: Back button not allowed after logged out
Date Posted: 16 June 2003 at 1:39am

How do I prevent a user from going back to the previous page by pressing the BACK browser button after he has logged out?  The idea is, if he logged out and tried to press the back button, he'll be redirected to the login screen.

Any idea?




Replies:
Posted By: ljamal
Date Posted: 16 June 2003 at 2:43am
Don't allow guests to browse the forum and everyone who is not logged in will be forced to register and/or log in.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: pmormr
Date Posted: 16 June 2003 at 5:49pm
try using cookies. Set the cookie when they log on, and on every protected page check the cookie before displaying content, and when they log off distroy the cookie.

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: Awangku
Date Posted: 17 June 2003 at 11:37pm

Tried both methods but I can still get the previous page. I suppose I'll just have to try another method.. like disabling the menu bar and context menu.

Thanks guys.



Posted By: ljamal
Date Posted: 18 June 2003 at 12:12am
That's because the browser it loading the page from cache. There really isn't a way to force a reload. As long as you are checking for the login on pages that need the login being able to back into a page shouldn't be too much of a problem as they should not be able to access anything when they finally hit a page that is not cached and/or reload a page.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net