Logo Head Picture  free e- mail 
 thaimail 
 hotmail 
 yahoo 
 siam2you 
 thammasat
 Home  Visual Basic Active Server Page  JavaScript   Network   Other 
 Active Server Pages.











COLLECTION PROPERTY:  Request.Cookies

Request.Cookies(Name)[(Key)|.Attribute]

The Cookies collection property allows you to access the values of the browser cookies sent in by requests.

You can iterate through a collection using a For Each item in ... Next loop.

There is one mandatory argument.

Name

The Name argument specifies the name of the cookie to be retrieved.

There are two optional arguments.

Key

The Key argument specifies which value from the cookie dictionary to retrieve.

Attribute

The optional Attribute argument is the boolean variable HasKeys.
True indicates that the cookie contains keys.
False indicates that the cookie does not contains keys

Code:
<%
Response.Cookies("myProduct")("Main") = "DevSite"
Response.Cookies("myProduct")("Prd1") = "ASP"
Response.Cookies("myProduct")("Prd2") = "VBScript"
Response.Write Request.Cookies("myProduct")
%>


Output:
PRD2=VBScript&PRD1=ASP&MAIN=DevSite

Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information

ASP - Link
ASP reference   
B   
C   
D   
E   
F   
G   
Last update: Copyright © 2001.Memo Wil@keo everything that I like Co.,Ltd.