Cookie[] cookies = request.getCookies();

will do the trick for you:).

Note: Tomcat checks for cookie on its first response.  That's why when you
restart tomcat for the first time, you can see the jsessionid *mysteriously*
appears in the URL.



-----Original Message-----
From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
Sent: August 27, 2003 3:46 PM
To: 'Tomcat-User'
Subject: Is there a call to check if cookies are enabled?


Hello:

HttpServletResponse.encodeURL() has to know if cookies are enabled
or not.  Is there an API call to check that?

I looked thru the APIs and found nothing.  Searching the web and
mailing list was also fruitless.

Thanks,
        Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to