cookie class : cookie(string,string,string,string) fitter

Description

Returns a new instance of cookie class.

Syntax

new cookie(string name, string value, string domain, string path)

Arguments

ClassNameDescription
stringnameThe name of the cookie.
stringvalueThe value of the cookie.
stringdomainDomain.
stringpathPath.

Return value

ClassDescription
cookieA new instance of cookie class.

Sample code

1:

cookie instance = new cookie("cookie_name","cookie_value","example.com","/");

Notes

Creates an instance of the cookie class with the specified name, value, domain, and path.

The created instance is not yet registered.

Links for reference

None.

Copyright © Cooker All rights reserved.