PHP 4.0 Bug #8809: Cookieless session with Header redirects
| From: | bf at ez dot no | Date: | Fri, 19 Jan 2001 19:44:53 +0000 |
| Subject: | PHP 4.0 Bug #8809: Cookieless session with Header redirects | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44592@lists.php.net to get a copy of this message | ||
From: bf@ez.no
Operating system: All
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: Cookieless session with Header redirects
I have code like:
session_start();
if ( !isset( $Foo ) )
{
session_register( "Foo" );
}
else
{
print( $Foo );
}
Header( "Location: /index.php" );
This does not work with cookieless sessions because the session information is not added to the
header() if it's a redirect.
The header() should add the PHPSESSIONID variable to the redirection path if it contains
"Location: " like it does with other URLS and forms.
--
Edit Bug report at: http://bugs.php.net/?id=8809&edit=1