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

后端 未结 2 351
谎友^
谎友^ 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.

    0 讨论(0)
  • 2021-01-19 04:04

    you can send cookies with first page, and then redirect to some index. if anyone tries to get page other then first without cookies then it is not supporting it.

    0 讨论(0)
提交回复
热议问题