From: xuefer at 21cn dot com Operating system: xp PHP version: 4.3.8 PHP Bug Type: Feature/Change Request Bug description: [session feature] make session_id() possible to called after session_start()
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 bug report at http://bugs.php.net/?id=29262&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29262&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29262&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29262&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29262&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29262&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29262&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29262&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29262&r=support Expected behavior: http://bugs.php.net/fix.php?id=29262&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29262&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29262&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29262&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29262&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29262&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29262&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29262&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29262&r=float