#41360 [Opn->Bgs]: always generate new SID

From: Date: Thu, 10 May 2007 21:31:10 +0000
Subject: #41360 [Opn->Bgs]: always generate new SID
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112512@lists.php.net to get a copy of this message
 ID:               41360
 Updated by:       tony2001@php.net
 Reported By:      barton dot tomas at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: windows
 PHP Version:      5.2.2
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Your browser does not accept session cookie.


Previous Comments:
------------------------------------------------------------------------

[2007-05-10 21:29:36] barton dot tomas at gmail dot com

Description:
------------
After calling session_start() generates two session files, $_SESSION
variable is strored in which SID is forgotten. 

Reproduce code:
---------------
<?php 
session_start();
echo 'SID:'.session_id();

 $_SESSION['a'] = 3;?>
<p>look on <a href="another_page.php">next</a></p>

another_page.php
---
<?php 
session_start();
if (isset($_SESSION['a'])){
	echo 'Session var a = ',$_SESSION['a'].'<br />';
}else { 
echo 'Session is not registered.<br />';}
echo 'SID:'.session_id(); ?>

Expected result:
----------------
SID:gahug37g6ga2e4qjuoo8988d62
look on next

----
Session is not registered.
SID:5elroalaf46hc4muhle5c18896



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41360&edit=1


Thread (2 messages)

« previous php.bugs (#112512) next »