A cookie is a plain text file that can contain no more than 4K of text. The file sits on your hard drive and is accessed by your Web browser when the remote site requests it. The Cookies does not contain information that is immediately understandable.
Active Server Pages (ASP), relay on cookies to work properly. Each time you open a session with an ASP server, you get a cookie. This cookie is used strictly for linking your browser with the server memory set aside for your session. Blocking cookies from an ASP-based server will cause most of the ASP functions to fail. Iíd rather allow the little text file on my machine if itís going to make my life easier when I go out to my favorite Web sites.
Your browser must to accept cookies for ASP to work properly. By default, most browsers are configured to accept cookies when you install them. You can change the settings.
Create a Cookie:
It is easy to create a cookie on a visitorís system. By default, cookies without expiration dates or time are not permanent and do not have a cookie file created for them.
In the Internet Explorer, look at the Temporary Internet Files directory or window directory, which will show you the expiration date and time ďLast CheckedĒ column of cookie files. You should purge old cookies periodically.
If you open a cookie, the black box is a new line character, + is a space, %3A is a colon, and %2F is the slash. The punctuation and special characters are translated to their hexadecimal equivalents. Explain cookie files to your users by explaining each line in the file.
Modify a Cookie:
Use the same code to create the cookie as we do to update the value.
Just update the value to an empty string, and cookie will go away. While cookies do have expiration dates, cookies donít seem to get removed when they should. Some cookies do not go away even if you purge Temporary Internet Files directory. Remove them yourself. For permanent cookies, be sure to provide realistic explanation dates, such as 30 or 60 days not 30 years.
Ahmed's Home Page