hey guys,
i'm writing a little chat script that uses a database to track whether or not a user is logged in. if the user logs in, it writes to a db and then writes again when they have logged out. however, if the user closes their browser or does not log out using the proper procedure, the user remains logged in (since it needs to write to the db). what would be my best bet to get that user out if the script is "aborted"?
thanks,
matt