RE: [PHP] Browser Redirect
| From: | John W. Holmes | Date: | Wed, 23 Apr 2003 00:31:40 +0000 |
| Subject: | RE: [PHP] Browser Redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144928@lists.php.net to get a copy of this message | ||
> 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/