Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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? On the server side (no ajax/js solution)

like image 215
Sebastien Lorber Avatar asked May 19 '10 13:05

Sebastien Lorber


People also ask

Can cookies be used to track your browsing history?

What can cookies track? Cookies can track any kind of data about users, such as search and browser history, what websites they previously visited, what they googled earlier, their IP addresses, their on-site behavior such as scrolling speed, where they clicked and where their mouse hovered.

How do I know if third-party cookies are enabled?

Open Chrome preferences click on Settings, then Show Advanced Settings. Under Privacy, click on Content Settings. Make sure “Block third-party cookies and site data” is not checked.

How cookies can show that a user has visited a site?

Cookies are created to identify you when you visit a new website. The web server — which stores the website's data — sends a short stream of identifying info to your web browser. Browser cookies are identified and read by “name-value” pairs. These tell cookies where to be sent and what data to recall.


2 Answers

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.

like image 190
falstro Avatar answered Nov 08 '22 17:11

falstro


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.

like image 27
Andrey Avatar answered Nov 08 '22 17:11

Andrey