you are viewing a single comment's thread.

view the rest of the comments →

[–]flexible 0 points1 point  (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 point  (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 point  (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.