Home

Submit

Source

Feeds
Tutorials » JavaScript » Cookies and Sessions

JavaScript Cookies and Sessions Tutorials

HTTP is stateless, which means that the protocol does not have a memory. A client opens a connection to a server, retrieves a document (or an image or any other data), and then closes the connection. The next time data is sent to this specific client from the server, the server does not recognize the client. Cookies can help work around this situation. A server can send a short bit of text information to the client, the so-called cookie. If this data is accepted and locally saved, the client sends this data back with every request to the same server. This enables the server application to recognize the user again.

JavaScript Cookies and Sessions
Determine if Cookies Are Enabled
JavaScript / Cookies and Sessions
Use a few simple lines of JavaScript to verify if cookies are accepted by the target web browser.

Site: www.devpub.com Report - View Tutorial

JavaScript Cookies and Sessions
Set A Cookie
JavaScript / Cookies and Sessions
Set a cookie and then read from it.

Site: www.htmlgoodies.com Report - View Tutorial

JavaScript Cookies and Sessions
Shopping Cart
JavaScript / Cookies and Sessions
Move information across pages using cookies. This is a must for people who sell anything over the Web.

Site: www.htmlgoodies.com Report - View Tutorial

JavaScript Cookies and Sessions
Cookie Counter
JavaScript / Cookies and Sessions
In this tutorial, I'm going to use a cookie to count the number of times a computer has been to your site. The purpose of the script is to place the cookie and retrieve it, adding one each time it visits.

Site: www.htmlgoodies.com Report - View Tutorial

JavaScript Cookies and Sessions
Remember Text field values
JavaScript / Cookies and Sessions
Certain form fields always contain the same values, such as your user's name, email address fields etc. This script will remember the values entered into these fields, and automatically fill out these fields the next time the user returns.

Site: www.javascriptkit.com Report - View Tutorial

JavaScript Cookies and Sessions
Display time of last visit
JavaScript / Cookies and Sessions
This script records the date+time of your visitor's last visit and displays it upon their return. If this is their first visit to your site, a greeting message is shown instead. You can customize the messages to display in each case.

Site: www.javascriptkit.com Report - View Tutorial

JavaScript Cookies and Sessions
Who stole the cookies? by Nakul Goyal
JavaScript / Cookies and Sessions
INTERNET cookies are incredibly simple, but they are one of those things that have taken on a life of their own. Cookies started receiving tremendous media attention starting February 2000 because of the Internet privacy concerns. The debate still rages on.

Site: www.nakulgoyal.com Report - View Tutorial

JavaScript Cookies and Sessions
Cookies
JavaScript / Cookies and Sessions
A cookie lets you store a small amount of information about a user visiting your site. A cookie is a small text file that is stored on the site visitor's computer by their browser.Because the cookie is stored on the user's computer, it does not require any server space no matter how many users you have.You can use cookies to save user preferences, customize data, remember the last visit, or to keep track of items in an order while a user browses.

Site: blazonry.com Report - View Tutorial

JavaScript Cookies and Sessions
Session only cookies
JavaScript / Cookies and Sessions
In this tutorial, we'll look up the recipe for session-only cookies, and how they can help your scripts retain information even after the page is reloaded or cleared.

Site: wsabstract.com Report - View Tutorial

JavaScript Cookies and Sessions
Determining JavaScript cookie support in client's browser
JavaScript / Cookies and Sessions
If your script relies on JavaScript cookies to store and persist information, it's a good idea to always make sure the user's browser has cookies enabled first. This tutorial shows you how to perform this detection.

Site: www.javascriptkit.com Report - View Tutorial

 
Site Search

 
JavaScript »
 
Categories
2D Graphics 3D Graphics Office Applications Databases Desktop Programming Web Development
 
Advertisement