Does anyone know how to get the time it takes to expire?
I'm creating it like this:
session_start();
I wanted to display to the user how much time he has left
Does anyone know how to get the time it takes to expire?
I'm creating it like this:
session_start();
I wanted to display to the user how much time he has left
Try using the following snippet:
$segundos=ini_get('session.gc_maxlifetime');