Very strange problem with session files
| From: | Jarek | Date: | Thu, 02 Aug 2001 09:29:43 +0000 |
| Subject: | Very strange problem with session files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-60868@lists.php.net to get a copy of this message | ||
I have WindowsNT4 Serv & PHP 4.0.6/CGI
My php.ini includes:
(...)
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
(...)
Problem: When I run PHP script which uses sessions (commands like session_start()
etc.) the session file IS created in /tmp BUT cannot be received and
added to my URL. My browser (IE5.5PL SP1) receives message:
Warning: Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (/tmp) in
I:\(...)\test.php on line 0
I checked. The session data was created! I CAN read them directly by
another script also in PHP:
(...)
<?
$fd = fopen("$path/$filename", "r") or die("<h3>Cannot read
$path/$filename</h3>");
print fread($fd, filesize("$path/$filename"));
fclose($fd);
?>
It seams very strange. PHP do create session data but display error
"Failed to write". What can be incorrect with session.save_path? I
checked, the session data is created correctly. I can read that file.
What is goin' on? Anybody can help?
--
Jarek