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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 13:01:33 2025 UTC