How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Harry Mantheakis
The API for the HttpServletResponse.encodeURL() method states that the implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. How does Tomcat know whether or not a browser supports cookies, or session tracking is turned off? Is it

Re: How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Javier Villalobos Arancibia
I use a HttpSession object. HttpSession object = null; When user access to site, i use: object = request.getSession(); later i use: boolean n = object.isNew(); if n = true, then user is not using cookies. I suppose that tomcat is using Session Cookies and not re-writting politic.. because, tomcat

Re: How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Harry Mantheakis
I understand what you are saying, Javier, if you have a round-trip situation, where you set cookies in one response, and then test for them in a follow-up request. But I'm not convinced that's how Tomcat does it. The first time a client connects to a server, there will not be any cookies,

RE: How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Mike Curwen
. ;) Mike Curwen -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 10:12 AM To: Tomcat Users List Subject: Re: How does Tomcat know that a browser supports cookies? I understand what you are saying, Javier, if you have

Re: How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Harry Mantheakis
PROTECTED] Sent: Thursday, January 27, 2005 10:12 AM To: Tomcat Users List Subject: Re: How does Tomcat know that a browser supports cookies? I understand what you are saying, Javier, if you have a round-trip situation, where you set cookies in one response, and then test for them