Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17741
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "J.O. Aho" <user@example.net> |
| Newsgroups | comp.lang.php |
| Subject | Re: php ini |
| Date | Wed, 16 May 2018 18:29:38 +0200 |
| Lines | 36 |
| Message-ID | <fm34jiF5vgoU1@mid.individual.net> (permalink) |
| References | <pdh718$u78$1@dont-email.me> <pdhfpq$l5h$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net sBioXKD0DgGVXL4r6zL9awFRZxFRrrIrPPZlaanyJTqDiTVqG+ |
| Cancel-Lock | sha1:hYPye4raRra2W5MbGKlfoWYhwoA= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
| In-Reply-To | <pdhfpq$l5h$1@dont-email.me> |
| Content-Language | en-GB |
| Xref | csiph.com comp.lang.php:17741 |
Show key headers only | View raw
On 05/16/18 16:38, Lew Pitcher wrote: > madwomans Dad 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 > > You are looking for the "session.cookie_lifetime" setting in php.ini > If that setting is not explicitly set, then it defaults to "0", meaning that > the session cookie will last "until the browser is closed". OTOH, if the > setting /is/ set in php.ini, the value specifies the lifetime of the session > cookie in seconds. > > See > http://php.net/manual/en/session.configuration.php > > [snip] > > FWIW, this is a global php setting; if you have multiple pages, each with > their own session criteria, you can override this default by passing the > appropriate value in the session_start() call. You can also configure it on a directory based level in a similar way as in the php.ini. -- //Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
php ini madwomans Dad <dsvirtual58@gmail.com> - 2018-05-16 13:09 +0100
Re: php ini tony@mountifield.org (Tony Mountifield) - 2018-05-16 13:11 +0000
Re: php ini K <yyyyyeeeee00000@writeme.com> - 2023-03-11 07:53 -0800
Re: php ini doctor@doctor.nl2k.ab.ca (The Doctor) - 2023-03-11 23:44 +0000
Re: php ini Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2018-05-16 10:38 -0400
Re: php ini Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-05-16 16:53 +0200
Re: php ini Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2018-05-16 12:02 -0400
Re: php ini Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-05-16 19:59 +0200
Re: php ini Jerry Stuckle <jstucklex@attglobal.net> - 2018-05-16 15:09 -0400
Re: php ini "J.O. Aho" <user@example.net> - 2018-05-16 18:29 +0200
Re: php ini Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-05-16 16:48 +0200
Re: php ini "J.O. Aho" <user@example.net> - 2018-05-16 18:36 +0200
Re: php ini madwomans Dad <dsvirtual58@gmail.com> - 2018-05-17 08:42 +0100
csiph-web