Setting a cookie in pure JS, not HTML

admin

Administrator
Staff member
Hello developers,

I am running a auto configuration .INS file on browser load, which in turn calls a .JS file (that one filters a list of URLs and points to appropriate proxies).

I would like to set a static cookie on client's machine in that .JS file.
As far as I know cookies are sent to the clien'ts box in HTTP header. Therefore it will not be possible to do so in pure JavaScript file.

Am I right, or is it possible?

If it is, I would appreciate an explanation and possibly an example.

Thanks!

Frustrated and c-c-c-c-old in Pennsylvania.
 
Back
Top