Jump to content

Archived

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

extrovertive

Updating and deleting a session_id in a MySQL table

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?

Share this post


Link to post
Share on other sites

×

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.