So how would cookies get coded? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

So how would cookies get coded?

2nd Jan 2017, 12:46 PM
Kurtis East
Kurtis East - avatar
2 Answers
+ 8
In JS: document.cookie("name=value;");
2nd Jan 2017, 1:26 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
it's by scripts server side or JavaScript. in js you can set document.cookie and use it as other strings are used in php their are cookie functions to set create delete cookies.
2nd Jan 2017, 1:53 PM
Sandeep Chatterjee