Jump to content


Photo

Updating and deleting a session_id in a MySQL table


  • Please log in to reply
No replies to this topic

#1 extrovertive

extrovertive
  • Members
  • PipPipPip
  • Advanced Member
  • 235 posts

Posted 24 September 2006 - 08:03 AM

I have a website where people can login. Now, after they're login, I insert their session_id to a table `session`(user_id, session_id, timestamp, page_viewing).

Now, if a user logs out, leave my site, or close the browser, I want that particular session row in the table to be deleted. How is that done?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users