+ 3

How to record user sessions history

how to make a system to record that user login and logout

12th Nov 2018, 2:30 PM
Misbakh Ahmed
Misbakh Ahmed - avatar
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.
11th Dec 2018, 7:13 PM
Pragnesh Katkar
Pragnesh Katkar - avatar
+ 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.
13th Nov 2018, 5:42 AM
Raman Singh
- 1
make
17th Nov 2018, 3:46 PM
rizkyfauzirahmt