Answer the question
In order to leave comments, you need to log in
Get cookie options?
Good afternoon.
Write cookies through document.cookie , I know that. But look, I write:
document.cookie = "something=1;path=/;expires=Tue, 19 Jan 2038 03:14:07 GMT";
alert(document.cookie);
. And what do I see? something=1
, all? How can I find out the parameters of an existing cookie? For example, path and expires ?
Answer the question
In order to leave comments, you need to log in
document.cookie = "something=1";
document.cookie = "path=/";
document.cookie = "expires=Tue, 19 Jan 2038 03:14:07 GMT";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question