The mgiGetCookie Tag
Tag Behavior
Use the mgiGetCookie tag to display the value of a cookie
that has been saved on a visitor's computer (see also mgiSetCookie).
Tag Syntax
The mgiGetCookie tag has one required parameter and two optional
parameters. The tag form is:
<mgiGetCookie name="Name" useEncryption="Yes/No"
defaultValue="defaultString">
Required Parameters:
- name - The name is the name of the cookie to retrieved.
Optional Parameters:
- useEncryption - The useEncryption parameter specifies
if the cookie value should be decrypted. If the useEncryption
parameter value is "Yes", then the cookie value
is decrypted. If the useEncryption parameter value is "No",
then the cookie value is not decrypted. The default value is
"No."
- defaultValue - The defaultValue is the text that displays
if the cookie is not found or if the cookie value is blank. If
a default value is not specified, an emtpy string (blank) is
displayed.
Example Usage and Output
Hello <mgiGetCookie name="Name" defaultValue="Customer">.
Welcome back.
The mgiGetCookie in this example would display the value of
the "Name" cookie at the location of the mgiGetCookie
tag.
Hello Jim Sampson. Welcome back.
Suggested Usage
- Repeat Customer Information
- Login Information
|