Re: #3793 [Ana->Opn]: session.gc_maxlifetime does not work
| From: | Zeev Suraski | Date: | Sat, 17 Aug 2002 01:44:39 +0000 |
| Subject: | Re: #3793 [Ana->Opn]: session.gc_maxlifetime does not work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-86920@lists.php.net to get a copy of this message | ||
Just wondering - why are we even using atime? I think lots of filesystems don't support it, but regardless of that - as far as I recall from reading the session code, if a session is opened for reading - it is also going to be rewritten at the end of the session. So, it should be quite safe to check mtime instead of atime.
Comments?
Zeev
At 04:03 17/08/2002, rasmus@php.net wrote:
ID: 3793 Updated by: rasmus@php.net Reported By: kori_mail@hotmail.com -Status: Analyzed +Status: Open -Bug Type: Session related +Bug Type: Documentation problemOperating System: Windows 98PHP Version: 4 .1.2New Comment: I really don't see anybody with any interest in writing code to make this work on FAT filesystems. Don't run web servers on crap filesystems. If you do, write your own session handler. Same goes for filesystems where file modification timestamps are ignored. Write your own session handler and manage the garbage collection yourself. We'll need to document this, of course, so marking this as a documentation problem. Previous Comments: ------------------------------------------------------------------------ [2002-07-10 05:10:43] jerome.billet@hcuge.ch I've exactly the same problem with Windows 2000, php 4.2.0 and apache 1.3 ------------------------------------------------------------------------ [2002-03-31 03:49:43] bergmann@evisio.de After I tried about a week, by just setting the lifetime VERY high (40000 first), maybe I can give a hint: With this very high value it worked, so I tried where exactly was the critical point. It was somewhat about 32000. Slightly below, all session files were deleted as described, slightly over not. But then the error reoccurred with the same value. After some tries I found out the following: I set back the time on the server one hour and it worked again. Here the times and the critical points: At 9:24 local time : 30290 At 10:28 : 34100 34100-30290=3810, which would be 63.5 minutes when interpretad as seconds, which is the server's time difference... Since 10:28 means 37680 s since 0:00, there seems to be an additional hour - maybe due to GMT setting (+1) I thought, but it was the automatic daylight saving (or is it called summer time???) setting. When turned off, at 9:45 the point was at 35100=9.75 hours... I hope that helps... ;-) -- mike ------------------------------------------------------------------------ [2002-03-31 02:56:29] yohgaki@php.net It seems it never worked under windows. Reopen ------------------------------------------------------------------------ [2002-03-31 02:43:13] bergmann@evisio.de The reported errors are still in verson 4.1.2. System: w2k, CGI-version. ------------------------------------------------------------------------ [2001-12-16 07:24:47] sander@php.net No feedback. Closing. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online athttp://bugs.php.net/3793-- Edit this bug report at http://bugs.php.net/?id=3793&edit=1