how to store logout time in mysql database

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 9
Joined: Sun Mar 03, 2013 11:56 pm

Tue Mar 26, 2013 3:35 am

How to store the user log out time in mysql database with session

php-forum Fan User
php-forum Fan User
Posts: 974
Joined: Mon Oct 01, 2012 12:32 pm

Thu Mar 28, 2013 10:43 am

without knowing anything about your situation, specifically your database schema, how you're interacting with your database, or even how your user is logging out or if you're using objects or procedural code, it's impossible to even suggest a good solution that will work. Show some code and explain your situation a little bit and we will be more able to help you

New php-forum User
New php-forum User
Posts: 8
Joined: Fri Mar 29, 2013 10:02 am

Fri Mar 29, 2013 10:30 am

create a function named logout and in which set sql query to insert username and time in table.
and then destroy the session.

Post Reply