php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52709 Transient sessions no longer work
Submitted: 2010-08-26 20:21 UTC Modified: 2010-12-03 17:19 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:0 (0.0%)
From: nick at nbilyk dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.3.3 OS: XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nick at nbilyk dot com
New email:
PHP Version: OS:

 

 [2010-08-26 20:21 UTC] nick at nbilyk dot com
Description:
------------
Transient sessions no longer work.  The script shown works in 5.2.5 but not in 
5.3.3

Test script:
---------------
<?php
	ini_set("session.use_cookies", 0);
	ini_set("session.use_trans_sid", 1);
	session_start();
	
	if (isset($_SESSION["foo"])) {
		echo "Foo: " . $_SESSION["foo"];
	} else {
		$_SESSION["foo"] = "Foo";
		echo "<a href=?" . session_name() . "=" . session_id() . ">Begin test</a>";
	}
?>

Expected result:
----------------
When the link is clicked, the transient session should cause $_SESSION["foo"] to 
be set.

Actual result:
--------------
$_SESSION["foo"] is not set, a new session id is given.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-03 17:19 UTC] jani@php.net
-Status: Open +Status: Bogus
 [2010-12-03 17:19 UTC] jani@php.net
You need to disable this as well:

ini_set("session.use_only_cookies", 0);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 08:01:29 2024 UTC