A
2009-12-06 01:20:46 UTC
If I send the session ID from page 1 to page 2 via $_GET (Assignment of POST doesn't work seem to transfer it), and session_id($_GET['session_id']);, it changes the value of session_id() fine, but still seems unable to access the variables within the session.
//PAGE 1
session_start();
$_SESSION['username'] = $username;
$_SESSION['view'] = "all";
$_SESSION['logged_in'] = true;
setcookie("PHPSESSID", "", time() + (15*60), "/");
header("Location: page2.php");
//PAGE 2
//session_start();
session_id($_GET['session_id']);
echo "\n[", session_id(), "]";