5 minutes was just a tester time, it will be normanlly 60 minutes untill it will sign you out, but i wanna set idle timer on 5 minutes, then if inactive for more than 60 minutes they will get auto logged out when they next click a link.
But i also want it to clear the session if there not online.
For example if someones idle but still on the domain i want it to say there still online but idle.
Else if someones gone offline or gone to a different domain but there still idle i want it to clear the session.
Currently for last_activity its time()
But like i said before i think its something to do with jQuery or js that picks up if the users mouse is moving but still has been on a page for more than 5 mins.
I'm really stuck.
I'm sure it's jQuery or js.
It's like what vBulletin does.