I am new to php and am trying to build a website. I would like to logout user session if he is idle for some time. I searched the web but i couldn\'t find the proper code. H
You can use session_cache_expire, I give you this example :
session_cache_expire
"; echo "The cached session pages expire after $cache_expire minutes"; ?>
Source : php.net