Re: php ini
K <[email protected]> Sat, 11 Mar 2023 07:53:30 -0800 (PST)
| Newsgroups | comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
Get to watch Jesus videos ! youtu.be/-3nN9-C1yKU ... ...... ........... ......................... ....................................... ................................................... ..................................................................... ............................................................................................. On Wednesday, May 16, 2018 at 3:11:23 PM UTC+2, Tony Mountifield wrote: > In article <[email protected]>, > madwomans Dad <[email protected]> wrote: > > I'm trying to find out if it's possible to configure session timeout in > > some ini file > > > > $ php -version > > PHP 7.1.14 (cli) ... > > > > > > $ cat ./opt/alt/php71/etc/php.ini | grep session > > > > I can see all sorts of stuff but what I want is something in the ini > > file like session.timeout=whatever > > > > I really don't want to have to do this in code. > > > > Is there a 'secret' way to do this in the/an/some ini file > Not specifically, as far as I can tell. > > First you need to define what you mean by "session timeout". It could > easily mean one of two things: > > 1. The maximum duration of a session. So a session would be destroyed > a specified time after it was first created, even if it was in use. > > 2. The length of time after a session's last use that it will be discarded. > So a session would continue to exist as long as it was used again within > the timeout period, but would be destroyed if not used again within the > timeout. > > There doesn't appear to be a php.ini setting specifically for either scenario. > There are some statistical garbage collection settings for cleaning up old > sessions when using a global file-based session store. But they are basically > resource management rather than hard lifetime enforcement. > > Cheers > Tony > -- > Tony Mountifield > Work: [email protected] - http://www.softins.co.uk > Play: [email protected] - http://tony.mountifield.org