What is a cookie?
Cookies are used to store the information of a web page in a remote browser, so that when the same user comes back to that page, those information can be retrieved form the browser itself. In this tutorial we will see what is Cookies in PHP.
Uses of cookie
Cookies are often used to perform following tasks:
Session management: Cookies are widely used to manage user sessions. For example, when you use an online shopping cart, you keep adding items in the cart and finally when you checkout, all of those items are added in the list of items you have purchased. This can be achieved using cookies.
User identification: Once a user visits a webpage, using cookies, that user can be remembered. And later on, depending upon the search/visit pattern of the user, content which the user likely to be visited are served. A good example of this is 'Retargetting'. A concept used in online marketing, where depending upon the user's choice of content, advertisements of relevant product, which the user may buy, are served.
Tracking / Analytics: Cookies are used to track the user. Which, in turn, is used to analyze and serve various kind of data of great value, like location, technologies (e.g. browser, OS) form where the user visited, how long (s)he stayed on various pages etc.
We will discuss about cookies with Example in Next Post...
Thank You
No comments:
Post a Comment