|
<< Click to Display Table of Contents >> Navigation: Telegram > 2022 > 09 > 01 > Telegram_2022-09-01T08 |
2022-09-01T08:40:12
one method is to have a field in your user database that is a flag or count showing he is logged in. Make it yes or true or 1 etc. when they log in. When they log out you have to set it to N, or false or zero. Upon login, check to see if it is already set and then terminate the session. The only flaw is if the session had some problem whereby it did not close correctly and the value is not reset. then and administrator would have to change it before they could log in again.