Update table when user logs out?
I have a table called "users" with a field called logged_in that is updated to a "Y" when a user logs in. That is working fine. I need to update that a "N" when a user logs out, but I am having trouble. I guess because it's not a submit button so I can't use the update wizard. I am not that good at code, but have tried a few things and can't seem to get it twork. Can anyone give me a simple code to insert to make this work? OR even better a way that just logs out the user after 60 minutes and updates that field to "N". Either way I could work with. Thanks!
