Tutorial explaining how to read and write cookies and why they can come in handy. The tutorial also gives examples of how cookies can be used to personalize webpages.
No matter how you feel about cookies, good bad or indifferent, they are an integral part of many webs. Why not unlock the mystery and write your own? Here's a quick rundown on this.
A cookie is a message given to a Web browser by a Web server. The main purpose of cookies is to identify users and possibly prepare customized Web pages for them. This article explains benefits of using cookies and shows how to create and retrieve them. Dictionary cookies are also explained.
This tutorial shows how to keep information from the user in your server (Session method) and how to share information between users (Application method). This is only a basic tutorial for beginners with only basic features are described.
Cookies can be used to remember things about a user when they come back to your site. Cookies expire after a certain amount of time which you can set. Also, the clients browser must have cookies enabled for them to work. Here is a very simple example of creating a cookie and setting the cookie to expire in one year using ASP
Cookies are not transferrable across domains; the only domain that can access the cookie is the domain that created it. This article describes solutions to bypass this limitation using Active Server Pages.
Cookies enable you to write text directly to a users computer. This can be used to easily recognize if a user has been to your site before or used to prevent multiple entries in to forms. This example will take any input you type in and write it to a cookie. A hyperlink to the same page is created to demonstrate on subsequent visits (within 3 days) the user will see their input rather then the text input box.