I am trying to use session variables in php but they don’t seem to be saved across page loads. Maybe I am misunderstanding something, if so please point it out. To test I created these two pages:
page1.php<?php session_start(); $_SESSION["key"]="value"; ?> key: <?=$_SESSION["key"]?>
The output of page1 is as expected, but when I click on the link to go to page2 I lose the session variable and the page just looks like "key: " Any assistance is appreciated, thanks.