|
Get SteelArrow!
|
|
|
|
<SACOOKIE/>
|
|
|
|
|
|
|
|
Return to Tag List |
|
The COOKIE tag is used to set add or change the value of a HTTP cookie that will be
sent back to the client with the generated page data.
|
|
Attributes:
NAME | cookie name |
VALUE | cookie value |
EXPIRES | number of hours to expire (default is 0); or a full date/time |
PATH | path of server that cookie is valid (default is '/') |
DOMAIN | sub-domain for cookie (default is current domain) |
SECURE | 'yes' or 'no'; applies to SSL |
|
|
|
The following is an example of COOKIE;
|
|
<!--- Default path is '/' (which matches all directories) --->
<!--- Cookie will expire at end of HTTP session --->
<SACOOKIE SACOOKIE NAME="cook" VALUE="123">
<!--- This one expires the cookie in 2 hours, --->
<!--- and is valid in any directory that matches /st --->
<!--- (ie. /steel /steelarrow/samples /student/junk) --->
<SACOOKIE NAME="cook" VALUE="123" PATH="/st" EXPIRES="2">
<!--- This is an example of a domain cookie --->
<SACOOKIE NAME="cook" VALUE="123" DOMAIN=".steelarrow.com" EXPIRES="2">
<!--- This one is only valid for SSL communications --->
<SACOOKIE NAME="cook" VALUE="123" EXPIRES="2" SECURE="yes">
|
|
|
|