RE: [PHP] Browser Redirect

From: Date: Wed, 23 Apr 2003 00:49:36 +0000
Subject: RE: [PHP] Browser Redirect
Groups: php.general 
Request: Send a blank email to php-general+get-144930@lists.php.net to get a copy of this message
Thanks for the reply. I have the code just like you have it, but on the page that I register the session var, it is empty. //page1.php session_start(); $_SESSION['var'] = 'value'; echo $_SESSION['var']//results in nothing //page2.php or any other page. session_start(); echo $_SESSION['var']//results in the correct value Thanks, Chris
From: "John W. Holmes" <holmes072000@charter.net> Reply-To: <holmes072000@charter.net> To: "'Chris Cook'" <cjc1800@hotmail.com>,<php-general@lists.php.net> Subject: RE: [PHP] Browser Redirect Date: Tue, 22 Apr 2003 20:31:40 -0400 Is there another way to do a page redirect other than in the header. I want to register a session variable and then redirect the page so I can use that session variable immediately. Why do you have to redirect? Session_start(); $_SESSION['var'] = 'value'; Now use $_SESSION['var'] wherever you need it. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
_________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

« previous php.general (#144930) next »