The next time the same browser requests a page, it sends the cookie it received from the Web server. Cookies allow a set of information to be associated with a user. ASP scripts can both get and set the values of cookies by using the Cookies collection of the Response and Request objects. Setting Cookies To set the value of a cookie, use Response. If the cookie does not already exist, Response.
Cookies creates a new one.
If you want a cookie to be used only during the current user session, then sending the cookie to the browser is all you need to do. However, if you want to identify a user even after the user has stopped and restarted the browser, you must force the browser to store the cookie in a file on the client computer's hard disk. To save the cookie, use the Expires attribute for Response. If an existing cookie has key values but Response. Cookies does not specify a key name, then the existing key values are deleted.