Web tier: servlets, JSP, Web frameworks: How can i know that whether a Browser is Cookie enabled or not.?

  1. Hai every body!
             Some browsers my not be cookie enabled. So before downloading the cookie the server need to know whether the browser allows the cookie or not.

       How can i(Server)know s about it???

    waiting for ur reply..........


    Threaded Messages (1)

  2. cookie[ Go to top ]

    Server cannot know wether or not the browser support cookies for the first time.
    Because http have no hand-shaking phrase, server has no idea about browser's cookie at the first time browser send http request to server.
    Server then send something about cookie back to browser assuming that browser doesn't support cookie.
    Only when Browser send request to server for the second time, the server can get to know whether or not browser support cookies.