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


Groups > comp.lang.php > #17738

Re: php ini

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: php ini
Date 2018-05-16 16:48 +0200
Organization PointedEars Software (PES)
Message-ID <1619056.Ch7bOrQdYy@PointedEars.de> (permalink)
References <pdh718$u78$1@dont-email.me>

Show all headers | View raw


madwomans Dad wrote:
^^^^^^^^^^^^^
This is not a chatroom. Get a real name.

> 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

(UUOC.  Use

  grep -e session ./opt/…

instead.)

Are you sure that this is the correct file?  Likely it is not.
Use

  php -i | grep -e '\.ini'

to find out, if you are actually using the CLI for the sessions.

Otherwise, read <http://php.net/phpinfo>.
 
> I can see all sorts of stuff but what I want is something in the ini
> file like session.timeout=whatever

Possible reasons why you cannot find it there:

1. Wrong php.ini
2. PHP uses additional .ini files in which it is set instead
3. PHP uses the default
 
> I really don't want to have to do this in code.

You do not have to.
 
> Is there a 'secret' way to do this in the/an/some ini file

Yes, RTFM.

-- 
PointedEars
Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.

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