This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes to find out the browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "to find out the browser" Watch "to find out the browser" New topic

to find out the browser

Ravi Chandiran

Joined: Dec 11, 2000
Posts: 2
Hi ! If any body can clarify me, how to find out whether the browser is enabled for cookies are not !

Thanx in advance

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
The only way I know is to try to set a cookie and see if it comes back in the next request. If you are trying to use a HttpSession, you can call the isNew() method - if the session is always new, the browser is not supporting cookies.
Consider Paul's rocket mass heater.
subject: to find out the browser
Similar Threads
How to use j_security_check directly (skip the login page)?
Java Plugin version
Web Browser's JVM version
doubt regarding sessions
session lost in client machine