Testing for cookie disabled browser - netscape problem

Dear gurus and colleagues, I have a need to test whether cookies are enabled or not in the browser. Setting a cookie and then getting it did not work because the cookie seems to be visible only 'downstream' from the servlet. So looking through the ever so useful JavaRanch archives I found a solution. It works for Internet Explorer but not for Netscape (no matter which version). Any ideas?

That's OK, but only if you've already created a session! The best way I know is to snoop out the browser's support in the site's home page so that when they go to log in, it all comes down and you can store it in the session. I do this not only for cookies, but detecting support for Java, JavaScript, etc.