Copied this from PHP.net:
<?php
// page1.php
session_start();
echo 'Welcome to page #1';
$_SESSION['favcolor'] = 'green';
$_SESSION['animal'] = 'cat';
$_SESSION['time'] = time();
// Works if session cookie was accepted
echo '<br /><a href="page2.php">page 2</a>';
// Or maybe pass along the session id, if needed
echo '<br /><a href="page2.php?' . SID . '">page 2</a>';
?>
Example of setting a session. My result, however, NEVER passes the SID in example 2 (<a href="page2.php?' . SID . '">page 2</a>). In fact, all my research has lead me to believe it expires "immediately".
How can I fix this?
Thanks,
Eve