How to change MYSQl when php reads data in real time-php Tutorial

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.