Req #29262 [Fbk->NoF]: [session feature] make session_id() possible to called after session_start()
| From: | php-bugs at lists dot php dot net | Date: | Sun, 01 Aug 2021 04:22:08 +0000 |
| Subject: | Req #29262 [Fbk->NoF]: [session feature] make session_id() possible to called after session_start() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235507@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=29262&edit=1
ID: 29262
Updated by: php-bugs@lists.php.net
Reported by: xuefer at 21cn dot com
Summary: [session feature] make session_id() possible to called
after session_start()
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: Session related
Operating System: xp
PHP Version: 4.3.8
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-07-21 15:13:53] cmb@php.net
Is this still relevant for anyone?
------------------------------------------------------------------------
[2004-07-19 16:52:54] xuefer at 21cn dot com
Description:
------------
current limitation:
session_id() needs to be called before session_start() for that purpose(change sid)
but session_regenerate_id() can be called AFTER session_start();
so why not make session_id($sid) the same way?
session_id($sid) use old scheme before session_start(); (BC)
and do update SID/send cookie after session_start() (new feature)
the reason to do this is: i'd have same userid use same session, the new one will search for
old sessionid (which is better done in session read callback), and session_id($oldsid)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=29262&edit=1