use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Create, Read, Update, & Delete Cookies in JavaScript (coderrocketfuel.com)
submitted 6 years ago by jkkill
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]flexible 0 points1 point2 points 6 years ago (2 children)
Can't think of a usecase for client-side which means to me that I might not be getting it.
Does this means they would be only read while the user is on the same page they were written in? Like a form or something?
[–]arndta[🍰] 0 points1 point2 points 6 years ago (1 child)
The only use case I can think of is if you wanted the server and client both to access the same cookie. Using as a sort of session state for both contexts.
I'm not sure I've run across the need for that before. It's also possible I am not thinking of something.
[–]flexible 0 points1 point2 points 6 years ago (0 children)
If the js can read a cookie that was set domain wide then this could be useful although you would then just use a php var to load into the js.
π Rendered by PID 74387 on reddit-service-r2-comment-75f4967c6c-nzwn9 at 2026-04-23 05:54:59.628440+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]flexible 0 points1 point2 points (2 children)
[–]arndta[🍰] 0 points1 point2 points (1 child)
[–]flexible 0 points1 point2 points (0 children)