In article <pdh718$u78$1...@dont-email.me>,
madwomans Dad <dsvir...@gmail.com> 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 fileNot 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: to...@softins.co.uk - http://www.softins.co.uk
Play: to...@mountifield.org - http://tony.mountifield.org
Get to watch Jesus videos !
youtu.be/-3nN9-C1yKU
...
......
...........
.........................
....................................... >................................................... >..................................................................... >...........................................................................= >..................
On Wednesday, May 16, 2018 at 3:11:23=E2=80=AFPM UTC+2, Tony Mountifield wr= >ote:
In article <pdh718$u78$1...@dont-email.me>,
madwomans Dad <dsvir...@gmail.com> wrote:=20
I'm trying to find out if it's possible to configure session timeout in= >=20Not specifically, as far as I can tell.=20
some ini file=20
=20
$ php -version=20
PHP 7.1.14 (cli) ...=20
=20
=20
$ cat ./opt/alt/php71/etc/php.ini | grep session=20
=20
I can see all sorts of stuff but what I want is something in the ini=20
file like session.timeout=3Dwhatever=20
=20
I really don't want to have to do this in code.=20
=20
Is there a 'secret' way to do this in the/an/some ini file
=20
First you need to define what you mean by "session timeout". It could=20
easily mean one of two things:=20
=20
1. The maximum duration of a session. So a session would be destroyed=20
a specified time after it was first created, even if it was in use.=20
=20
2. The length of time after a session's last use that it will be discarde= >d.=20
So a session would continue to exist as long as it was used again within= >=20
the timeout period, but would be destroyed if not used again within the= >=20
timeout.=20
=20
There doesn't appear to be a php.ini setting specifically for either scen= >ario.=20
There are some statistical garbage collection settings for cleaning up ol= >d=20
sessions when using a global file-based session store. But they are basic= >ally=20
resource management rather than hard lifetime enforcement.=20
=20
Cheers=20
Tony=20
--=20
Tony Mountifield=20
Work: to...@softins.co.uk - http://www.softins.co.uk=20
Play: to...@mountifield.org - http://tony.mountifield.org
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 349 |
Nodes: | 16 (2 / 14) |
Uptime: | 118:57:05 |
Calls: | 7,612 |
Files: | 12,787 |
Messages: | 5,684,026 |