my dog learned polymorphism*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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:
subject: Cookies Enabled Flag ?
Similar Threads
Session without Cookie
How to hide the jsessionid id in my address bar in servlet programming
Persistent Cookies in Servlets
he doesn't ask for authenticate