jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Cookies Enabled Flag ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies Enabled Flag ?" Watch "Cookies Enabled Flag ?" New topic

Cookies Enabled Flag ?

Jonathan Andrew King

Joined: May 21, 2001
Posts: 9
Hi Folks,
Does anyone out there know if there is anything in the HTTP request and Servlet API that defines if cookies are available up front ?
The problem is that if I set a cookie I have to wait until the next request to determine if it worked which is too late.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Not that I am aware of. You just have to try to get the cookies and see if there is any. i.e The cookie array returns zero length.


So much trouble in the world -- Bob Marley
I agree. Here's the link: http://aspose.com/file-tools
subject: Cookies Enabled Flag ?
It's not a secret anymore!