How to determine the client browser version? Also, how to check if it allows cookies?
See this question in the JSP FAQ: http://www.jguru.com/jguru/faq/view.jsp?EID=12253 for a class which embodies lots of good info about the browser.
It's not enough to tell if the browser might possibly support cookies; you also must tell if the user has enabled or disabled cookies. For that, you must drop a test cookie on the browser, then see if it gets sent back. A servlet that does this is called CookieDetector, at http://www.purpletech.com/code/.