|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 06:00:02 2025 UTC |
You need to disable this as well: ini_set("session.use_only_cookies", 0);