how to reset the field in db when the session ends in php -
in application,i have user management. in 1 session can activated given user. user should not login in more once in time. set flag field in db. while user login app, had checked whether flag 0 or not. if 0, he/she can login app , set flag 1. if same user logins @ time show message "you login". wrote logout functionally destroy session , reset flag in db. problem ,
while session ends without clicking logout, not able reset flag in db.
how solve problem? can me..
Comments
Post a Comment