PHP - checking the maximum session lifetime in code

How do you check the value assigned to session.gc_maxlifetime ?
Obviously this does not work:

 echo session.gc_maxlifetime; 
+4
source share
1 answer

The function you are looking for is ini_get ...

 echo ini_get('session.gc_maxlifetime'); 
+7
source

All Articles