You can create a table called logusers or anything else and make the login time to be inserted into it whenever a successful login operation is performed. And when a logout is done, the corresponding record should have its logout time (which default could be null or whatever) updated to show that that user has logged out. Logout could be when a user clicks logout or when a session expires.
Logusers table could have the following fields:
id, userid, logintime, logouttime
Main Topics
Browse All Topics





by: logudotcomPosted on 2008-04-01 at 00:03:00ID: 21251761
ref. e.com/Web_ Developmen t/ Web_Lang uages-Stan dards/PHP/ Q_20683060 .html e.com/Web_ Developmen t/ Web_Lang uages-Stan dards/PHP/ Q_21561584 .html
http://www.experts-exchang
http://www.experts-exchang