Cookies

From: Date: Fri, 17 Mar 2000 23:09:42 +0000
Subject: Cookies
Groups: php.version4 
Request: Send a blank email to php-version4+get-12345@lists.php.net to get a copy of this message
Sorry about forgetting the code last post...here it is I was wondering if anyone could give me a hand with this one? I am trying to check to see if the remote user has cookies enable on their box and the code below works just fine unless the user book marks the page. I know why this is so but was wondering if anyone could offer me any suggestions on what I might want to do so that the user could book mark the page and still be able to make the cookie test? //Used to check to see if cookies are enabled if(isset($WELCOME)) { //echo("Welcome=".$WELCOME); //exit(); if(!isset($COOKIES_ENABLED)) { //echo "<html>Bad, no cookie support</html>"; include($DOCUMENT_ROOT."/index/login_no_cookies_error.php"); exit(); } else ;//echo "<html>Cookie support</html>"; } else { setcookie("COOKIES_ENABLED","Yep!",0); header("Cache-Control: no-cache, must-revalidate"); header("location: ./index.php?WELCOME=1"); exit(); } -- Brett M. Delia Software Engineer / Web Developer SportsMVP.com - Active Arts, Inc. 6650 S.W. Redwood Lane, Suite 200 Portland OR 97224 503.684.5806 x775 mailto:brettd@sportsmvp.com http://www.sportsmvp.com - http://www.activearts.com Do what you can, with what you have, where you are. --Theodore Roosevelt I have simply tried to do what seemed best each day, as each day came. -- Abraham Lincoln

« previous php.version4 (#12345) next »