I am a experiencing a similar problem, if anyone can work this one out I would be very grateful.
My files look like this...
php file 1
session_start();
$user = $usrname; // username from form
$pass = $usrpassword; // password from form
session_register("user");
session_register("pass");
<a href="sessions3.php3?PHPSESSID=<? echo "$PHPSESSID"; ?>">NEXT</a>
?>
php file 2
echo "$user";
echo "$pass";
This works fine when cookies are turned on but I get a very strange message when cookies are turned off...
Warning: Failed to write session data (files).
Please verify that the current setting of session.save_path is correct (/tmp/) in Unknown on line 0
So I added session_save_path("/home/mattwilde/wildesites.net/temp/"); to the top of my php pages. Again it works when cookies are turned on and I can see the session files on my server in the temp directory as above. But when I turn cookies off again no session and no files get created.
You can see by visiting http://www.wildesites.net/test/session.html
If anyone can help...
Pleeeeeeeeeeeeeeeaaaaasssseee
B4 I go mad!