Learn about cookies
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 3162
Total Votes: 36 votes
Category: PHP/Cookies and Sessions
Submitted on: 2008-03-16 03:24:20
Submitted By: Devesh Khanna
Description: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...