ok, here goes, what I am trying to do is when a person logs into my website, a session carrying his e-mail address is passed from page to page, but on the second page, the session is empty. here is the code i am using
<?php //setcookie("User", $UserName); ?>
<?php //setcookie("Pword", $Password); ?>
<?php //setcookie("Email", $Ema); ?>
<?php session_start();
$HTTP_SESSION_VARS['sess_var'] = "$Ema";
echo 'The content of $HTTP_SESSION_VARS[\'sess_var\'] is '.$HTTP_SESSION_VARS['sess_var'].'<br />';
//header("Cache-control: private");
//$HTTP_SESSION_VARS['sess_var']?>
the e-mail address is recognised here but not on this page:
<?php session_start();
echo 'The content of $HTTP_SESSION_VARS[\'sess_var\'] is '.$HTTP_SESSION_VARS['sess_var'].'<br />';
unset($HTTP_SESSION_VARS['sess_var'])?>
it only works when i use the cookies aswell, is that right?
thank you for your help 🙂