how do i check if the session is going to expire in php : <p>I have a usecase that i want to check if the session is going to expire in 30 sec or 60 sec. if so I should be able to extend the session. I am fine with any solutions with session or cookies. How do I acomplish that. Pls eloborate your solution. But I should know before the session expires.</p>
