Re: Very strange problem with session files
| From: | Andras Balogh | Date: | Thu, 02 Aug 2001 09:39:12 +0000 |
| Subject: | Re: Very strange problem with session files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60871@lists.php.net to get a copy of this message | ||
Hi,
I think the prlbem is that /tmp is not a valid path under WinNT
Try chaning session.save_path to c:\php\tmp or c:\temp or any other
windows directory.
Best wishes,
Andras.
----- Original Message -----
From: "Jarek" <programisci@murator.com.pl>
To: <php-general@lists.php.net>
Sent: Thursday, August 02, 2001 12:29 PM
Subject: [PHP] Very strange problem with session files
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net