| Tag Link | [Cookie_Set] | Category | Utility |
|---|---|---|---|
| Type | Process | Source Available | No |
| Support | Preferred | Version | 3.0 |
| Change | Unchanged | Data Source | Any |
| Output Type | None | Security | None |
| Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x |
[Cookie_Set] sets a cookie with a given name and value. The rest of the parameters of the tag are optional, but should be set for best results.
[Cookie_Set: 'Cookie Name'='Cookie Value',
| Required Parameters | |
|---|---|
| Cookie Name | The name and value for the cookie which is to be set. |
| Optional Parameters | |
| -Domain | The name of the host to which this cookie should be sent. |
| -Expires | The time in minutes when this cookie should expire. Omit this parameter to have a cookie expire when the visitor quits their Web browser. Set to -1 to have a cookie expire immediately (to delete a cookie). |
| -Path | The path of files to which this cookie should be set. Usually set to /. |
| -Secure | If set this cookie will only be sent back to the Web server on requests for HTTPS secure Web pages. |
| -HttpOnly | If set this cookie will only be accessible by the server, and not by client scripts. |
To set a cookie:
Use the [Cookie_Set] tag. The following example sets a cookie named First_Name to the value John. Since the
[Cookie_Set: 'First_Name'='John',