ListCookies Context [ListCookies params]Cookie Tags[/ListCookies]
Lists all the cookie names and values sent from the remote browser.

To display a list of all the cookies available, put a [ListCookies] context into a template.

Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):

The following are all the cookies available to this page:<br>
[ListCookies]
[index],[name],[value]<br>
[/ListCookies]

The [ListCookies] context has optional parameters that are placed within the beginning tag in order to modify the list of cookies produced.

Example:

The following are the values of all the cookies whose name begins with "text":<br>
[ListCookies name=text&exact=F]
[index],[value]<br>
[/ListCookies]

The following parameters are optional to the [ListCookies] context:
Parameter Description
Name
The name of the cookie to list.
 Exact
T(rue) or F(alse) whether to exactly match the name of the parameter or match any name that contains the "name" value. (Default value is true.)

The following tags are available inside a [ListCookies] context:
Tag Description
 [Name]
The name of the cookie.
 [Value]
The value associated with the cookie.
[Index]
A number from 1 to the maximum number of cookies, indicating this cookie's index placement in the list.

User Contributed Notes
ListCookiesContext  

Copyright © 2008 WebDNA Software Corporation, Inc.