I have a site that i'm currently working on and i'm trying to figure out how to set up the session so that it times out after 10 minutes of inactivity. I've had a look thru the Session class and there is a set_timeout method but this uses session_set_cookie_params which sets out a timeout time from login when the user logs in. What i'm trying to do is reset the 10 minutes timestamp for each time a logged in user has loaded a page.
i've tried doing something like this: http://php.net/manual/en/function.session-set-cookie-params.php#78930 but I cannot get it to work. Has anyone been able to achieve this.