What is default session time and path in PHP. How to change it ?

devquora
devquora

Posted On: Mar 24, 2020

 

    1 Answer Written

  •  devquora
    Answered by Farheen

    Default session time in PHP is 24 minutes (1440 seconds) and Default path of Session in PHP is /var/lib/php5/sessions.

    You can change it by editing your php-configuration(php.ini) file on your webserver.

Related Questions

Please Login or Register to leave a response.

Related Questions

PHP Interview Questions

What is T_PAAMAYIM_NEKUDOTAYIM in PHP?

T_PAAMAYIM_NEKUDOTAYIM is scope resolution operator used as :: (double colon) .Basically, it used to call static methods/variables of a Class...

PHP Interview Questions

What is the difference between == and === operator in PHP ?

In PHP == is equal operator and returns TRUE if $a is equal to $b after type juggling and === is Identical operator and return TRUE if $a is equal to $b, and they are of the same data type...