Ok, I give up. I have browsed these forums for hours, have looked around the web, but have not been able to solve my problem.
All I'm doing is a simple test to see how sessions work, taken from a book, but it's not working. Here it is:
Page1.php:
<?php
session_start();
$HTTP_SESSION_VARS['sess_var'] = "Hello world!";
echo 'The content of $HTTP_SESSION_VARS[\'sess_var\'] is '
.$HTTP_SESSION_VARS['sess_var'].'<br />';
?>
<a href="page2.php">Next page</a>
Result: Works properly, I get on screen The content of $_var is Hello world!
Page2.php (called from page1.php):
<?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']);
?>
<a href="page3.php">Next page</a>
Result: Doesn't work, I ONLY get on screen The content of $_var is
That is, the contect of the variable is not displayed.
I'm working on my localhost with wamp. I believe all my settings in php.ini regarding sessions are OK. Any ideas?