aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies Enabled Flag ?" Watch "Cookies Enabled Flag ?" New topic
Author

Cookies Enabled Flag ?

Jonathan Andrew King
Greenhorn

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.
Cheers
JonK
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
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.

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookies Enabled Flag ?
 
Similar Threads
Session without Cookie
he doesn't ask for authenticate
Cookie
Persistent Cookies in Servlets
How to hide the jsessionid id in my address bar in servlet programming