Close a session in php after 10 minutes
Posted on 2014-08-29
I have a system created in PHP with MSSQL, this system is public and anyone from around the world can see it, one of the things I need is to create a session to control some part of the system but now my problem is that sessions are giving me problems because the user could let the browser open and the session is still valid and the server at some point is hanging because is consuming many resources.
Is there any way to close the session after x period of time? I have been trying with the settings in the php.ini file but that not solve my problem, some other way to force this?
Thanks in advance for the help.