Hi, On 07/08/2013 05:10 AM, dealTek wrote: > Hi all, > > I would like to make a timeout length to session variables, so that if a user didn't use the browser page for let's say 5 minutes - the session variables would expire and the user would need to login again. > > > Q: What's the best way to implement this functionality? You can either use cookies or do something like that: http://stackoverflow.com/questions/3068744/php-session-timeout In your case is would be if ($_SESSION['timeout'] + 5 * 60 < time()) { // session timed out } else { // session ok } Karim -- Karim Geiger Auszubildender Fachinformatiker AE B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Attachment:
signature.asc
Description: OpenPGP digital signature