Re: Very strange problem with session files
| From: | Jarek | Date: | Fri, 03 Aug 2001 09:11:34 +0000 |
| Subject: | Re: Very strange problem with session files | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61108@lists.php.net to get a copy of this message | ||
I changed session.save_path to c:\php but it does not make any
difference. I tried change it in different ways.
I suppose, the problem is more sophisticated. Now, I can connect and
work with those scripts BUT nobody else (sic!) can work. All (except me)
receive the message "Failed to write session data..". We all work in
the same intranet. We all have the same user rights to change contents
of c:\temp on the server.
More. SOME scripts at the same server CAN work. They deal with
sessions in the same way like others. But, some others scripts do not
want to work, they cannot write session data (the same error msg).
Sometimes I could not work, sometimes I could. Yesterday I could not.
Today I can. Others not. Even admin receives error "Failed to write
session data...". Is it not strange?
--
Jarek
> ----- Original 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