I have a function in Javascript which sets a cookie like this:
document.cookie = "name='Name'" + ";EXPIRES=sometime" + ";PATH=$PATH" + ";DOMAIN=domain" + ";SECURE=''";
I want to set the HttpOnly attribute of the cookie as TRUE.
How do I do that in Javascript?
I tried the following way which didn't work out:
document.cookie.HttpOnly = true;
Also, searched in Google but did not find any solution in Javascript.