ok here is my code. The $PHPSESSID always comes up as an undefined variable
<?
session_start();
if(isset($_POST['destroy']))
{
session_destroy();
unset($_SESSION['name']);
} else {
if(!isset($_SESSION['name']))
{
$name = "Spike";
}
}
?>
<p>SESSID: <?=$PHPSESSID?>
<p>Name: <?=$name?>
<form action=session2.php method=post>
<input type="submit" name="reload" value="Reload Session"><br>
<input type="submit" name="destroy" value="Destroy Session">
</form>
i searched the manual and still could not find out what i was doing wrong. and yes i already set the session.save_path for windows..
here is the error i get btw:
Notice: Undefined variable: PHPSESSID in C:\Apache2\htdocs\learning\session2.php on line 15