PHP 4.0 Bug #1988: <?=sid?> doesn't reflect session_name("newname") change
| From: | kovacsp at egr dot uri dot edu | Date: | Sat, 07 Aug 1999 17:25:28 +0000 |
| Subject: | PHP 4.0 Bug #1988: <?=sid?> doesn't reflect session_name("newname") change | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9626@lists.php.net to get a copy of this message | ||
From: kovacsp@egr.uri.edu
Operating system: Linux 2.2.9
PHP version: 4.0 Latest CVS (07/08/1999)
PHP Bug Type: Misbehaving function
Bug description: <?=sid?> doesn't reflect session_name("newname")
change
<?
session_start();
echo "\nSession name: " . session_name();
echo "\nSetting session name to blah";
session_name("blah");
echo "\nSession name now: " . session_name();
?>
<?=sid?>
Produces this output:
Session name: PHPSESSID
Setting session name to blah
Session name now: blah
PHPSESSID=8beb119ba14466d03261957ebea8d853
PHP4 running as dynamic apache module compiled with the following parameters:
./configure --with-apxs=/usr/bin/apxs --with-mysql