Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

How to Use Cookies in PHP

Share this post!
 Vote this!

What is a Cookie?

A cookie is flat file based system used to represent a user of the website. It is stored on the local computer of the user. When you visit a website a cookie may be set to represent the user. Next time he visits the website, he does not need to identify himself manually; instead the cookie will represent him on that website. With the help of PHP, cookies can be created, read and destroyed.
The main difference between a session and a cookie is that cookies are stored on the user’s computer where as sessions are stored on the server for particular usage. Cookies can be manually deleted by the users also to make sure security is not breached. more...

0 comments:

Post a Comment