A question about whether PHP programs are executed on different browsers at the same time

Source: Internet
Author: User
This is a problem that determines whether a PHP program is executed on different browsers at the same time. I have a program (assuming a single page). when this program is running, I don't want multiple browsers to run at the same time, because SESSION and COOKIE may cause different verification results due to different browser kernels, and the same time may occur, open three browsers with different kernels to simulate three users to run the program at the same time.

How can we verify that a computer can run only one program at a time without being affected by the browser.

For example, if you log on to a web game, you cannot log on to multiple accounts in the same browser at the same time, but you can log on to three accounts simultaneously in three different browsers.

How can we verify to prevent such "multi-open" situations?


Reply to discussion (solution)

This can be written into the memory or database to determine whether the user has logged on, and then judge the login status before each login. does this not solve the avoidance situation? I wonder if this is what I mean

Can be written to the database for judgment.

How about mac + ip address verification?

This can be written into the memory or database to determine whether the user has logged on, and then judge the login status before each login. does this not solve the avoidance situation? I wonder if this is what I mean

This does prevent the same user from being "too open", but I want only one user to log on, that is, not even three different user names.

How about mac + ip address verification?

This may be feasible, but is there such a project?

Http://www.baidu.com/baidu? Word = js % E8 % 8E % B7 % E5 % 8F % 96mac % E5 % 9C % B0 % E5 % 9D % 80 & ie = UTF-8

Http://www.baidu.com/baidu? Word = js % E8 % 8E % B7 % E5 % 8F % 96mac % E5 % 9C % B0 % E5 % 9D % 80 & ie = UTF-8

Thank you, moderator.

It's easy to have an account. The last logon kills the previous one and records the latest session id.

It's easy to have an account. The last logon kills the previous one and records the latest session id.

So how do I know which account corresponds to which account? I just prevent a user from logging on with multiple accounts at the same time, instead of logging on with only one user and one account.

Http://www.baidu.com/baidu? Word = js % E8 % 8E % B7 % E5 % 8F % 96mac % E5 % 9C % B0 % E5 % 9D % 80 & ie = UTF-8
The moderator's boss. it seems that the user needs to click "trust" to allow it. is there anything that can be done directly?

To obtain user information, you must allow it. Or are you planning to create a prism?


It's easy to have an account. The last logon kills the previous one and records the latest session id.

So how do I know which account corresponds to which account? I just prevent a user from logging on with multiple accounts at the same time, instead of logging on with only one user and one account.

Dizzy. why don't you know? When I log on, do I not judge that my account is not recorded? Is it True/False?

I have to remind you that the mac address can be forged...



It's easy to have an account. The last logon kills the previous one and records the latest session id.

So how do I know which account corresponds to which account? I just prevent a user from logging on with multiple accounts at the same time, instead of logging on with only one user and one account.

Dizzy. why don't you know? When I log on, do I not judge that my account is not recorded? Is it True/False?

My goal is to prevent "one user opens more", so I want to be sure that this user can only use one account at the same time. if he has registered three accounts, if you use three different browsers to log on to the server, you can check whether the server is correct for each account. However, all three accounts log on to the server at the same time, I want to confirm that this user can only use one of them

To obtain user information, you must allow it. Or are you planning to create a prism?

Can the user provide and determine the unique information?

I have to remind you that the mac address can be forged...

Niu, is there any way to identify the only user?

You just need to verify where your account is. the SESSION has a unique ID every time you access the SESSION, and you must change the browser to a new one.

You just need to verify where your account is. the SESSION has a unique ID every time you access the SESSION, and you must change the browser to a new one.

Now I want to find a way to identify the unique user, not the unique account. after changing the new SESSION, how can I determine whether the user has logged on before?


I have to remind you that the mac address can be forged...

Niu, is there any way to identify the only user?

Unless you discard all your browsers as clients and develop a dedicated client for access, there is no way.

Related Article

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.