Is it possible to run a mysql query when the session expires. How would this even work. So if a user is logged in and idles out after 10 minutes and the session expires it would post a 0 into my users table under user_active.
<?
session_cache_expire(15,$query = "select * from users_info where username_email='pass' and username_pass='pass' and user_active='1'")
?>
im so lost here