Is it possible to find out if cookies are allowed by the browser on first access

At the very first access to the website, you can find out if browser cookies are activated due to a GET request?

Is this possible in the context of J2EE? Server side (no ajax / js solution)

+4
source share
2 answers

Short answer: None.

An HTTP request simply does not carry such information. It is implicitly checked, trying to send it to the client and see if he uses it or not. There are probably also various javascript options, but you obviously did not want to use them.

+7
source

you can send cookies from the first page and then redirect to some index. if someone tries to get a different page, and then first without cookies, then it does not support it.

+4
source

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


All Articles