I am trying to get the variable that is imputed into $_SESSION to carry over to another page. I am able to get the variable working on this page, but when I call $s_name on another page it shows nothing. Isn't SESSION suposed to put a sort of cookie on your computer that you can call at any time? Any help would be greatly appreciated. Thank you.
<?
session_start();
$_SESSION['s_name'] = $name;
echo "Hi $s_name";
?>
<FORM METHOD="POST" ACTION="Q2.php">
What is your name? <input type="text" name="name">
<input type="SUBMIT" value="submit">
</FORM>
<a href="Q2b.php">Next--></a><br/>