|
HTTPCookieWrite (Function) In french: HTTPCookieEcrit
// Sets the value of an identification cookie with a stored value HTTPCookieWrite("domain.com", "ID", LoadParameter("ID")) // Performs an HTTP request HTTPRequest("www.MySite.com?Login") // Retrieves and stores the value of the cookie returned by the server sID is string = HTTPCookieRead(".mysite.com", "ID") SaveParameter("ID", sID)
Syntax
Request run by HTTPRequest Hide the details
HTTPCookieWrite(<Domain> , <Name> , <Value>)
<Domain>: Character string Validity domain of cookie.The cookie will be sent into all HTTP requests whose domain ends with the validity domain of cookie. For example, a cookie whose validity domain is ".mydomain.fr" will be sent during the following requests: - http://mydomain.fr
- http://www.mydomain.fr/index.html
- http://server.mydomain.fr/page.awp
It will not be sent in the following requests:- http://www.mydomain.com
- http://otherdomain.fr
<Name>: Character string Name of cookie.This name is not case sensitive. <Value>: Character string Value of cookie.Remarks: - The value of a cookie is limited to 4KB. Beyond this size, the server is free to reject the cookie.
- The control characters (TAB, CR, etc.) as well as the semicolon and the binary zeros are not allowed.
Versions 20 and later New in version 20Remarks - If the management of cookies was not enabled by HTTPCookieManage, the cookies are not sent to the server:
- The cookie is created if it does not exist.
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |