Hi
While learning how to create and manage a session, I got through session time out technique, I got throw 2 ways :
1. Setting up garpage collection directive in php.ini file and
2. Create a session variable named, say, EXPIRE that holds the value
$_SESSION['EXPIRES']=time()+360;
at the beginning of a session and then keep checking if it's the correct time to expire or not yet.
My question is : which is the best practice in practical life? to depend on the server configuration file? or create your custom time out session??
Thank you in advance