Ok, I'm new to all this but I'm only trying a simple piece of code. It seems that sessions just are not working at all. Heres the code I that doesn't work:
session1.php:
<?php
session_start();
session_register("sess_var");
$sess_var = "hello world";
echo "sessvar = :".$sess_var;
?>
<a href = "session2.php"> Next "</a>
session2.php
<?
session_start();
echo $HTTP_SESSION_VARS["sess_var"];
echo "content of session is :" . $sess_var;
?>
My understand is that the output from session2.php should have "hello world" in it somewhere, instead all I get is:
"content of session is :"
Any help much apprechiated!
Jon