1

After being inactive for some time in my php application I get kicked out (around 20 minutes).

I am suspecting that it could be a variable in php.ini conf file which is killing the sessions or removing the sessions but I'm not 100% sure if this is something that it has to do with that, at least I can try.

The question is what is the variable responsible for the live of the session?

Thanks

  • 1
    possible duplicate of [How do I expire a PHP session after 30 minutes?](http://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes) – D4V1D Sep 18 '15 at 22:34
  • that post doesn't resolve my question, it's talking about creating a custom script to expire sessions. – Julio Cesar Sep 18 '15 at 22:43

1 Answers1

2

php.ini -> session.gc_maxlifetime

The default is 1440 seconds (24 mins)

See this: PHP : What is the default lifetime of a session

Community
  • 1
  • 1
csklrnd
  • 184
  • 8