BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
Microsoft ASP
The Response.ContentType Property
The Response.CodePage Property
The Response.Charset Property
The Response.CacheControl Property
The Response.Buffer Property
The Response.Write Method
The Response.Redirect Method
The Response.Flush Method
The Response.End Method
The Response.Clear Method
The Response.BinaryWrite Method
The Response.AppendToLog Method
The Response.AddHeader Method
The Response Object
The Request.TotalBytes Property
The Request.ServerVariables Property
The Request.QueryString Property
The Request.Form Property
The Request.Cookies Property
The Request.ClientCertification Property
<< LAMP
 

By :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.

Example

<%

            ' Set two cookies with some values

            Response.Cookies("Username") = "Sonu"

            Response.Cookies("Password") = "XXXXXXXXXXXXXX"

            ' Retrieve the value from those cookies 

            Response.Write "UserName: " & Request.Cookies("Username") & "<br/>"

            Response.Write "Password: " & Request.Cookies("Password")

%>

Output

Attributes

Name:

Description:

Domain

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.


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Integration Specialist Needed - Wor
Virtualization Server Infrastructur
A great opportunity to Digital Vide
here is a greate opportunity as a S
A great opportunity as a Network En

View all Jobs (Add yours)
View all CV (Add yours)




swimming pool builder
chicago web site design
spfxmasks
Cheap Web Hosting
conference calling
Prada sunglasses
answering service


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP