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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -