Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
1483
The Response.Cookies Property
Introduction
The Response.Cookies property can be used to set cookies. A
cookie is a small file on the client system, which stores information. You can
either create a new cookie or override the existing value. If you need to read
the cookie you can use the Request.Cookies property. This property takes 2
parameters. The first one “Name” is always used and cannot be avoided. It is
the name of the cookie, which is required to retrieve the value. The second one
is “Key”, which is optional and used to retrieve sub keys. Along with the
cookie name you can use some attributes. The below table show the attributes.
This attribute can be used if you want the cookie to be
sending to a specific domain. This attribute is write-only.
Expires
This attribute can be used to specify the expiration date
of the cookie. If you do not specify the date then it will expire with the
session. This attribute is write-only.
HasKeys
This attribute can be used to read whether the cookie
contains any keys. It is read-only.
Path
This attribute can be used to specify if the cookie is
sent only to requests to this path. If you don’t specify this attribute it
will use the application path. It is write-only.
Secure
This attribute can be used to specify if the cookie is
secure.