how sessions work in php?
Starting a Session In PHP, a session provides a way to store web page visitor preferences on a web server in the form of variables that can be used across multiple pages. Unlike a cookie, variable information is not stored on the user's computer. ... The session sets a tiny cookie on the user's computer to serve as a key.