PHP 4.0 Bug #1988 Updated: <?=sid?> doesn't reflect session_name("newname") change
| From: | Bug Database | Date: | Sat, 07 Aug 1999 17:29:43 +0000 |
| Subject: | PHP 4.0 Bug #1988 Updated: <?=sid?> doesn't reflect session_name("newname") change | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9627@lists.php.net to get a copy of this message | ||
ID: 1988
Updated by: sas
Reported By: kovacsp@egr.uri.edu
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
Once a session is started, either explicitly through session_start() or implicitly through
session_register(), the name of the session cannot be changed anymore. More correctly, the name
change is not reflected in anything which is performed during session start (e.g. defining sid).
Therefore put session_name() before session_start() and you are fine.
Full Bug description available at: http://bugs.php.net/?id=1988