Is it possible to know if browser has cookies enabled on the very first access

后端 未结 2 352
谎友^
谎友^ 2021-01-19 03:11

On a very first access to a website, is it possible to know if browser cookies are activated thanks to the GET request?

Is it possible particularly in a J2EE context

2条回答
  •  生来不讨喜
    2021-01-19 03:57

    Short answer: No.

    The HTTP request does simply not carry that kind of information. It's only implicitly testable by trying to send one to the client and see if it uses it or not. There are probably also various javascript options, but you explicitly did not want one of those.

提交回复
热议问题