how to get session time in php

1

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

    
asked by anonymous 07.10.2016 / 20:43

1 answer

2

Try using the following snippet:

$segundos=ini_get('session.gc_maxlifetime');
    
07.10.2016 / 20:59