This is how MYSQl changes when php reads data in real time. I have created an online statistics table & lt; online & gt; which will be written to every login, the current user name and logon time. This record is automatically deleted when you exit. There is an item in the background to manage the logon time of online users. the 123182.16.12.10 kick-off (function is to delete the online records inserted when this user logs on) how to change MYSQl during real-time php reading
This is the case. I have created an online statistics table. The current user name and logon time will be written to this table every time you log on. This record is automatically deleted when you exit.
There is one item in the background to manage online users
User logon time operation
123 182.16.12.10 kicking (the function is to delete the online records inserted when this user logs on)
The front-end user will determine that the online record does not exist. if it does not exist, the user will exit the logon page. However, the front-end user will exit only when there are operations or refresh operations.
How can I quit the front-end user immediately after it reaches the background kick-off?
------ Solution --------------------
Delete session on the server
If the js ajax obtains a session that does not exist, destroy the logon.