We
can define a cookie using Cookie class.
Syntax
to Create a cookie
Cookie
cookie1 = new Cookie(name, value);
Here
the arguments to constructor name and value must be strings. The
name of a cookie cannot be changed once the cookie has been created.
The cookie's value can be changed after creation with the setValue
method.
For example of a cookie, follow the below link
No comments:
Post a Comment