Re: Newbie question...

From: Date: Sat, 19 Aug 2000 06:12:05 +0000
Subject: Re: Newbie question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12566@lists.php.net to get a copy of this message
You could do something like: <? Header ("Cacge-control: no-cache"); ?> On your pages (this would force all proxys/cache's to not store your page). I would reccomend this _only_ for the members-only sections (ie. only the pages that require you to login/logout). This should work, as its in the W3c http/1.0 http/1.1 standards doc. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html Hope this aids you :) Patrick. ----- Original Message ----- From: "Viral Shah" <viral@noeticsolutions.com> To: <php-general@lists.php.net> Sent: Saturday, August 19, 2000 5:40 PM Subject: [PHP] Newbie question... Hi! I am trying to implement a login/logout feature in our website. When the user is done with what he/she needs to do in the "restricted" area, they would click on the LOGOUT link. This will destroy their cookie and open a page informing that they have been successfully logged out. Now, if the user clicks on the BACK button on the browser, the previous page is loaded. The user cannot perform any functions however. Clicking on any of the links in that page takes them to the login error page. My question is that how do I "reprocess" the previous page when they user clicks on the BACK button, so that the code executes and checks for the cookie and redirects them to the login error page instead of showing this page. Any help in this regard will be really appreciated. === Viral Shah viral@noeticsolutions.com

« previous php.general (#12566) next »