Re: Problem with sessions
| From: | Perry Loh | Date: | Wed, 08 Nov 2000 09:51:51 +0000 |
| Subject: | Re: Problem with sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24287@lists.php.net to get a copy of this message | ||
Edit the save_path setting in your PHP.Ini, to a folder that actually exists
in your hard drive. The error happens because it cannot find c:\tmp
<skarthikeyan@nettaxi.com> wrote in message
news:200011080952.BAA08561@mail1.bigmailbox.com...
> Hi,
>
> Whenever i try to create a new session i get an error like this -
>
> 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
>
> This is the exact code that i use -
>
> <?php
> session_register("prd1");
> session_register("prd2");
> $prd1= "Sonic Screwdriver";
> $prd2= "HAL 2000";
> print session_encode();
> print "The products have been registered";
> print session_save_path();
> ?>
>
> And this is the detailed error which i get -
>
> Warning: open(/tmp\sess_623e95b98016a3b3ee668e28262cd13b, O_RDWR) failed:
m (2) in D:\Inetpub\wwwroot\coldfuse\php4\karthikphp\ses.php on line 2
> prd1|s:17:"Sonic Screwdriver";prd2|s:8:"HAL 2000";The products have been
registered/tmp
> Warning: open(/tmp\sess_623e95b98016a3b3ee668e28262cd13b, O_RDWR) failed:
m (2) in Unknown on line 0
>
> 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
>
>
> I work on a Win NT server and IIS has been installed on it.
>
> Can anyone please tell me what the problem is ?
>
> Karthik.
>
>
>
> ------------------------------------------------------------
> Nettaxi MP3 Player, Burner, Ripper - NEW Version 2.0!!! DOWNLOAD IT FREE!
(5MBs)
> MP3 DOWNLOAD:
> http://www.nettaxi.com/mp3/version_2/ntxy_MP3_setup.exe
>
>
>
> --
> 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
>