Doc #54412 [Com]: problem session_id() with parameters

From: Date: Fri, 01 Apr 2011 12:20:17 +0000
Subject: Doc #54412 [Com]: problem session_id() with parameters
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6170@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54412&edit=1 ID: 54412 Comment by: tomas dot brastavicius at quantum dot lt Reported by: cardi at thecsea dot it Summary: problem session_id() with parameters Status: Open Type: Documentation Problem Package: Documentation problem Operating System: linux ubuntu PHP Version: 5.3SVN-2011-03-28 (SVN) Block user comment: N Private report: N New Comment: You are claiming that calling session_id(exaple_session_id) changed session ID, but this is exactly the purpose of this function. In normal cases, calling session_id(exaple_session_id) after session_start() is equivalent to not calling this function at all, since the session that ID is another than exaple_session_id has been already started. Previous Comments: ------------------------------------------------------------------------ [2011-03-28 18:44:36] cardi at thecsea dot it Description: ------------ --- From manual page: http://www.php.net/function.session-id#Parameters --- in documentation is written that session_id() with parameters must be written before session_start(), but in this method when i do session_start() id is changed. For fixed this bug I write session_id after session_start(9 and all run correctly. Test script: --------------- firtst method: session_id(exaple_session_id) session_start() second method: session_start() session_id(exaple_session_id) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54412&edit=1

« previous php.doc.bugs (#6170) next »