|
Web+ Tutorial
|
Lesson 2.5 - Assigning a Cookie Variable
If the same browser makes many requests from your system, it can be convenient to instruct the browser to send a given piece of information every time it makes a request. You can do this by placing the information in a cookie, which the browser will submit every time it accesses your page.
- Description
- Stores a cookie onto the browser.
- Syntax
<webCookie NAME=CookieVariableName VALUE=CookieValueEXPIRES=Expiration [SECURITY=SecurityOption]>
- Agument
- /tutorial/argument/arg8.wml
- Example
<webCookie NAME="UserName" VALUE=#UserName# Expires="Now">
- Sample
<webCookie NAME="UserName" VALUE="Admin" Expires="7/20/97">
- Result:
- Exercise
-
You can try out some Web+ code of your own here.
|
|