+ 3
How to record user sessions history
how to make a system to record that user login and logout
3 Réponses
+ 1
Create a column named as login_status in users table and when any user logs in store 'loggedin' in that column and when user logs out store 'loggedout' in the column.
+ 7
Make a session variable to keep record of user.
On the login page..write session_start();
create session variable $_SESSION['username'];
on the home page this is a must to write session_start() to use the session variable.
- 1
make