session1.php: <?php session_start(); $_SESSION['s1']='sth'; header("location: session2.php?".SID); ?> session2.php: <?php session_start(); if(isset($_SESSION['s1'])) echo $_SESSION['s1']; else die("No session!"); ?>
session1.php: <?php session_start(); $_SESSION['s1']='sth'; header("location: session2.php?".SID); ?> session2.php: <?php session_start(); if(isset($_SESSION['s1'])) echo $_SESSION['s1']; else die("No session!"); ?>