Cookies
Cookies
What is cookies?
Cookies are small files which are stored on a user's computer which are used to
track information.
A cookie is a small file that the server embeds on the user's computer.
Each time the same computer requests a page with a browser, it will send the
cookie too. With PHP, you can both create and retrieve cookie values.
Steps
There are three steps involved in identifying returning information:
1. Server script sends a set of cookies to the browser. For example name, age, or
identification number etc.
2. Browser stores this information on local machine for future use.
3. When next time browser sends any request to web server then it sends those cookies
information to the server and server uses that information to identify the user.