Update bd when logout is press
I have store a variable in a session and stored it in a database when someone log in with the time they login. Now I would like to update the database row with the logout time when the person press the log out button.
Can someone give me some directions or some code?
Thanks