Learn about cookies

Tutorials Shared by the Internet Community


  Top Tutorials     New Tutorials     Submit     Login     Register  

Learn about cookies

Learn about cookies and where and how to use them
  • Total Hits: 15568

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating


  • Total Votes: 145 votes

  • Category: PHP/Cookies and Sessions

  • Submitted on: 2008-03-16 03:24:20

  • Submitted By: Devesh Khanna

  • Set as Favorite


First of all, you must define what you want to do with your script.
Cookies, are used mostly for login systems, and are very similar to Sessions but are different in some way or another.

A Session or Cookie is basically said to be a document on your (YOUR) computer with which you would store information. Cookies such as on this very forum. Somewhere on your computer there is a file that has information that was put and made by this forum. The forum recognizes this cookie, and tells you that you are logged in. Basically, its that "remember me" feature.

A Cookie and Session are very much alike in that they store information. But a cookie can last for as long as you set it, and a session will terminate once the browser is closed.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 37.93%  55
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.34%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.72%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.72%  17
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.28%  41

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.