How do I know the cookie javascript or server code has been set?

I have some cookies. I need these cookies, set only by the server code. So I need to find out that the cookie was set using javascript or server code. Is it possible?

+3
source share
1 answer

From a technical point of view, you cannot determine this information. One way to try is a hash value using sha1 / md5 and use a server-side session to store the same value and claim hashes.

Could you tell us a little more about what you are trying to do, and maybe some kind of solution.

+3
source

Source: https://habr.com/ru/post/1759853/


All Articles