Hi all,
I'm having a lot of trouble configuring PHP5 of recent and i'm adament to get it working!
My session handling isn't working as i expected and i've been googling for ages for an explanation but nothing i understand!
Heres a sample of what i'm trying:
sessionTest1.php
<?php
session_start();
$_SESSION['sess_var'] = 'Session variable';
echo '<a href="sessionTest2.php">';
?>
then the session doesn't 'carry over' to the next page:
sessionTest2.php:
<?php
session_start();
echo $_SESSION['sess_var'];
?>
This page does not print the session variable
Although the session data does appear in my session.savepath, /tmp, but does not pass over to other pages.
I have uncommented the session savepath in the php.ini and also set the use cookies thingy to 1
I'm running apache 1.3.27 with PHP5 on Mac OS X. If it matters, i'm using Safari and the latest Firefox!
Please help if you can! I think i should do my best to work with the latest version of PHP than resort to getting the previous version!
Thanks muchly
Stuart