ID:               41916
 Updated by:       [EMAIL PROTECTED]
 Reported By:      richard at dominion-web dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: Windows Server 2003
 PHP Version:      6CVS-2007-07-06 (snap)
 New Comment:

Works perfectly fine here as long as session.use_only_cookies = 0 and
session.use_trans_sid = 1.



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

[2007-07-06 13:42:22] richard at dominion-web dot com

Sorry wrong category

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

[2007-07-06 13:40:37] richard at dominion-web dot com

Description:
------------
I have a script that runs fine on all versions of PHP until I test with
the latest 6.0.0 snapshot.  I am using URL sessions rather than cookie
based sessions

On the first page I start the session with session_start(); and set
some variables with $_SESSION['varname'] = 'value';

I check the session temp directory and the session is there

---
folder|S:5:"INBOX";
---

The page directs to the next page and can confirm that the session id
in the URL is the same as that in the session temp directory.

However on both a print_r($_SESSION); and a var_dump($_SESSION); I get
Array ( )  being outputted to the screen.

The data is still in the session temp file i.e. it hasn't been deleted,
just the next script seems unable to read the data out of the file from
one page to the next.

As I say this script works on PHP 4, 5, 5.1 and 5.2 just not on
6.0snapshot.

Reproduce code:
---------------
1st page

ini_set ( "session.use_cookies", 0);
session_start();
$_SESSION['folder'] = 'INBOX';

2nd page

ini_set ( "session.use_cookies", 0);
session_start();
var_dump($_SESSION);

Expected result:
----------------
To get a variable dump of the $_SESSION array with folder -> INBOX in
it

Actual result:
--------------
Array(0) { }


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


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

Reply via email to