1.

How To Create A Cookie Using Vbscript?

Answer»

The simplest WAY to create a cookie is to ASSIGN a string value to the document.cookie object, which looks like this:

Syntax:

document.cookie = "key1 = value1; key2 = value2; EXPIRES = date";

Here expires attribute is OPTIONAL. If you provide this attribute with a valid date or time then cookie will expire at the given date or time and after that COOKIES' value will not be accessible.

The simplest way to create a cookie is to assign a string value to the document.cookie object, which looks like this:

Syntax:

document.cookie = "key1 = value1; key2 = value2; expires = date";

Here expires attribute is optional. If you provide this attribute with a valid date or time then cookie will expire at the given date or time and after that cookies' value will not be accessible.



Discussion

No Comment Found