Possible Duplicate:
Is it possible to know if browser has cookies enabled on the very first access
I am using HttpOnly cookies which are not accessible using javascript on the client side.
I wish to find out if the browser supports cookies in the first request only.
Is it possible to get this information from http request?
If you want to decide from the server side with one request whether the actual client supports HTTP cookie saving or not, then the answer is unfortunately no, you cannot.
Although you can send the HTTP cookie in the first request and check in the second that cookie has been saved or not. But be aware of that this will not guarantee that the expiry setting of the cookie has been accepted or not.
So for example you want to store an HTTP cookie for a year, but the client accepts only session cookies. In this case in the second request you’ll see your cookie, but if the user closes his browser there will be no cookie in the next requests.