Using session in login task in php language

one text

Solution:

At the time you login to the website, the session ID will be send back and save to your browser cookies. And If someone open the same url, they don't have your session ID so they cannot behave as you in that website.

Source