Jump to content

Updating and deleting a session_id in a MySQL table


extrovertive

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.