Issue saving session on windows xp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am running PHP v5.1.6 on Windows XP Pro. I have been unable to save
session variables, and I've tried everything I can think of with no
luck so far.

I have confirmed that I have writable access to my session save path,
but session variables are still not saved. Does anyone have
suggestions for configuration changes, etc.?

Reproduce code:
---------------
ini_set("session.save_path","C:\\WINDOWS\\temp");

session_start();

echo (($sp=ini_get('session.save_path'))?$sp:'Not set<br>');
echo is_writable($sp) ? ' writable<br>':' not writable<br>';

if (!isset($_SESSION['count'])) {
	$_SESSION['count'] = 0;
	}
else {
	$_SESSION['count']++;
	}
	
echo $_SESSION['count'];
?>

Expected result:
----------------
c:\windows\temp writable
0, 1, 2, 3 , 4...

Actual result:
--------------
c:\windows\temp writable
0, 0, 0, 0, 0...

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux