开发者

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

On a very fir开发者_如何学运维st 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? On the server side (no ajax/js solution)


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.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜