Doc #54412 [Opn->Bgs]: problem session_id() with parameters
| From: | frozenfire@php.net | Date: | Mon, 05 Dec 2011 21:43:42 +0000 |
| Subject: | Doc #54412 [Opn->Bgs]: problem session_id() with parameters | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7586@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54412&edit=1
ID: 54412
Updated by: frozenfire@php.net
Reported by: cardi at thecsea dot it
Summary: problem session_id() with parameters
-Status: Open
+Status: Bogus
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:
If you call session_id(), or any session function that has to change information
in the headers, after you call session_start(), the change will not occur, and
may cause unwanted behaviour, due to, say, the session ID stored server-side not
being the one that was sent to the client.
Previous Comments:
------------------------------------------------------------------------
[2011-04-01 14:20:16] tomas dot brastavicius at quantum dot lt
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.
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=54412&edit=1