Howdy y'all. Hopefully this be an easy one. ;-)
I am familiar with how expire a session. I offer a logout button which will register the user as logged out in the DB. The catch is I need the DB to change the "loggedIn" variable to 0 when inactive or such, in case the user just closes their browser, goes to a different site, and doesn't log out.
Any ideas? Thanks in advance. :-)