php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29262 [session feature] make session_id() possible to called after session_start()
Submitted: 2004-07-19 16:52 UTC Modified: 2017-04-02 14:37 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: xuefer at 21cn dot com Assigned:
Status: Open Package: Session related
PHP Version: 4.3.8 OS: xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [2004-07-19 16:52 UTC] 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)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-02 14:37 UTC] tpunt@php.net
-Package: Feature/Change Request +Package: Session related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Aug 23 18:01:26 2019 UTC