Re: Why does session.gc_maxlifetime default to 1440 seconds?
| From: | Markus Amalthea Magnuson | Date: | Wed, 28 Jan 2015 20:22:28 +0000 |
| Subject: | Re: Why does session.gc_maxlifetime default to 1440 seconds? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324309@lists.php.net to get a copy of this message | ||
There is no problem at all, and of course I can change it.
This is more out of curiosity :)
On Wed, Jan 28, 2015 at 9:16 PM, Alain Williams <addw@phcomp.co.uk> wrote:
> On Wed, Jan 28, 2015 at 09:08:49PM +0100, Markus Amalthea Magnuson wrote:
> > Thanks for the reply Aziz,
> >
> > I'm wondering about the decision itself, it seems like a rather strange
> > value, almost like the intention was 24 hours which there is some logic
> to.
> >
> > What do you think? How could I find more info on this? I emailed the
> person
> > who made the commit to the PHP source code ago setting this default, but
> > that was a long time ago and I still have not received any reply.
>
> It is a default ... the idea is to detect if someone has decided to go to
> another web site, gone to lunch, ... You can argue forever if it is the
> right
> number - I don't think that it is badly wrong - but if you don't like it
> just
> change it.
>
> What is the problem ?
>
> > Kind regards,
> >
> > Markus
> >
> > On Wed, Jan 28, 2015 at 8:57 PM, Aziz Saleh <azizsaleh@gmail.com> wrote:
> >
> > >
> > >
> > > On Wed, Jan 28, 2015 at 2:47 PM, Markus Amalthea Magnuson <
> > > markus.magnuson@gmail.com> wrote:
> > >
> > >> Hey all,
> > >>
> > >> Does anyone know why the default value of session.gc_maxlifetime is
> > >> 1440 seconds
> > >> (24 minutes)?
> > >>
> > >> Best regards,
> > >>
> > >> Markus
> > >>
> > >
> > > I would think its a design choice by the maker. You should read this to
> > > see how probability/divisor are accounted for as well:
> > >
> > > http://stackoverflow.com/a/1270960/1935500
> > >
>
> --
> Alain Williams
> Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT
> Lecturer.
> +44 (0) 787 668 0256 http://www.phcomp.co.uk/
> Parliament Hill Computers Ltd. Registration Information:
> http://www.phcomp.co.uk/contact.php
> #include <std_disclaimer.h>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>