Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17741

Re: php ini

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: php ini
Date 2018-05-16 18:29 +0200
Message-ID <fm34jiF5vgoU1@mid.individual.net> (permalink)
References <pdh718$u78$1@dont-email.me> <pdhfpq$l5h$1@dont-email.me>

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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