Browse a Listing
Top > PHP > Tips and Tutorials > Cookies and Sessions
Popular Tags
Free Script links
Member Reviews
Visitor Ratings
Google PR
This simple code shows you how to use cookies (THE BASICS OF IT!). This code basically checks if the user has been on the site before. It first sets a cookie and then checks if it exists using an IF.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 5 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
A cookie is a small bit of information stored on a viewer's computer by his or her web browser by request from a web page. The information is constantly passed in HTTP headers between the browser and web server; the browser sends the current cookie as part of its request to the server and the server sends updates to the data back to the user as part of its response.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 3 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Building web applications with membership management is one of the most frequent tasks that every programmer does. Managing membership data, such as username, password and the member's profile with sessions in PHP is the easiest and simplest solution, although it is not the only one.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 7 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Cookies are simply files stored in a special temporary location determined by your web browser (like Internet Explorer) which allow public information to be stored for your benefit usually. By public information, this can entail any information that you have entered into forms on websites, or certain non-identifying information such as your IP address or user agent.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 1 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
The first time a user accesses to a our pages some connections and disconnections took place. During this process the server and the client will interchange information to identify each other. Due to this exchange of information our server will be able to identify a specific user and this information may be use to assign specific information to each specific client. This relationship between computers is call a session. During the time a session is active, it is possible to assign information to a specific client by using Session related commands. After a few minutes, the session will expire, so that information will be lost.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 3 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Login using Cookies
Copy and paste the following code into your body tags and run it (code comments are included).
If you want to see the live result, try it here (new window).
This script set a cookie to save the user information sent by an online form. The online form is displayed only if the cookies has been saved.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Jan 7, 2007 Hits: 7 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR