how to track the logout timestamp using php.
Posted: Mon Jan 05, 2009 6:19 am
Hi Experts,
i am new to php. i would like to implement login/logout functionality to my application. In my application, i have to track the login and logout timestamp of an user. When user logins into my application, iam able to track the timestamp and able to update the timestamp into database.
However, iam unable to track the logout timestamp. If the user clicks on LOGOUT button, iam able to track the timestamp. but if the user simply closes the application or simly uses Alt+F4 keys iam unable to catch the timestamp. In both these cases, i would like to catch the timestamp and update it into database. Would appreciate if any of you could help me out. Thanks in advance.
Thanks,
Krishna.P
i am new to php. i would like to implement login/logout functionality to my application. In my application, i have to track the login and logout timestamp of an user. When user logins into my application, iam able to track the timestamp and able to update the timestamp into database.
However, iam unable to track the logout timestamp. If the user clicks on LOGOUT button, iam able to track the timestamp. but if the user simply closes the application or simly uses Alt+F4 keys iam unable to catch the timestamp. In both these cases, i would like to catch the timestamp and update it into database. Would appreciate if any of you could help me out. Thanks in advance.
Thanks,
Krishna.P