cookiemanager class : CreateCookie(string,string,string,string) method
Description
Creates a cookie with the specified parameters.
Syntax
instance.CreateCookie(string name, string value, string domain, string path)
Arguments
Class | Name | Description |
string | name | Cookie name. |
string | value | Cookie value. |
string | domain | Domain. |
string | path | Path. |
Return value
Class | Description |
cookie | Created cookie. |
Sample code
1: | cookiemanager cm; |
2: | cookie coo = cm.CreateCookie("name", "value", "example.com", "/"); |
Notes
You must explicitly save it to reflect the cookie you create.
Links for reference
None.