Re: php session GC error

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

 



Frank Stanovcak wrote:
> "Nathan Rixham" <nrixham@xxxxxxxxx> wrote in message 
> news:496D03D3.2060607@xxxxxxxxxxxx
>> Frank Stanovcak wrote:
>>> "Shawn McKenzie" <nospam@xxxxxxxxxxxxx> wrote in message 
>>> news:F8.EF.24097.E510D694@xxxxxxxxxxxxxxx
>>>> Frank Stanovcak wrote:
>>>>> I'm trying to make sure that my sessions are timed out by my server.
>>>>> I'm running it on winxp, and my php.ini contains the following
>>>>>
>>>>> session.gc_probability = 1
>>>>> session.gc_divisor     = 1
>>>>>
>>>>> ; After this number of seconds, stored data will be seen as 'garbage' 
>>>>> and
>>>>> ; cleaned up by the garbage collection process.
>>>>> session.gc_maxlifetime = 30
>>>>>
>>>>> I am now getting this error
>>>>>
>>>>> PHP Notice: session_start() [function.session-start]: 
>>>>> ps_files_cleanup_dir:
>>>>> opendir(C:\WINDOWS\TEMP\) failed: No such file or directory (2) in
>>>>> C:\Inetpub\wwwroot\Envelope1\edit\EditMain.php on line 2
>>>>>
>>>>> What do I have to do to make this work right?
>>>>>
>>>>> Frank
>>>>>
>>>>>
>>>> Does C:\WINDOWS\TEMP\ exist?
>>>>
>>>> -- 
>>>> Thanks!
>>>> -Shawn
>>>> http://www.spidean.com
>>> Yes it does, well C:\Windows\Temp does, but win isn't case 
>>> sensitive...does it matter to PHP?
>> try changing it to the correct case then come back and tell us if case 
>> matters? :)
> ok...let me try it like this.
> 
> how do I explicitly tell PHP in the ini what directory to use for session 
> storage and cleanup.  I've been googling for about an hour now, and am just 
> getting more frustrated.  :(
> 
> The server is a single purpose server, and it will remain that way, so I 
> don't want to have to code ini settings into each page.  :)
> 
> Frank 
> 
> 
Should be session.save_path, but check phpinfo() to see what it's using.
 Should be the path in the error.

-- 
Thanks!
-Shawn
http://www.spidean.com

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux