Answer the question
In order to leave comments, you need to log in
How does a server in PHP identify a user by session?
As you know, the session uses a cookie to identify the user. What if you disable cookies?
Then the server will determine by ip address and user agent. But in this case, there is a chance to confuse the user who goes through the proxy.
Real life case : I opened google and saw someone else's email in the upper right corner, this email belonged to my colleague, but she never sat down at my computer. How can I log into google using someone else's account? At work, we access the Internet through a proxy
Answer the question
In order to leave comments, you need to log in
"Then the server will determine the ip address and the user agent. But in this case, there is a chance to confuse the user who goes through the proxy."
- No, it's not.
If cookies are disabled, then if allowed, the url parameter is used (added to the end). Or sessions do not work at all. There is no definition by IP and useragent
How can I log into google using someone else's account? At work, we access the Internet through a proxy
Not everything that is done is done in PHP. And even more so Google does not communicate with php. But a proxy with a clumsy caching setting gives this all the time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question