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

ClassNameDescription
stringnameCookie name.
stringvalueCookie value.
stringdomainDomain.
stringpathPath.

Return value

ClassDescription
cookieCreated 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.

Copyright © Cooker All rights reserved.