Regarding URL Rewriting

Hi,

The response.encodeRUL(someURL)

will add session information, in case the client does not support cookies.

How does the servlet that i am calling from the browser know if the client has disabled cookies or not. Does this come in as a header information, if yes what is the name of that header.(The call to my servlet is the first instance of contact with my webapp, so how does servlet rewriting understand how to write the JSESSIONID as querystring or not).

Any links detailing the same are also welcome.

Thanks.

[554 byte] By [KartikVa] at [2007-10-2 10:50:02]
# 1
if you get a cookie that you previously set, and that cookie's value is null, then cookies aren't enabled.
dmbdmba at 2007-7-13 3:07:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I have a static page, that on clicking calls a servlet, here i have code to URL rewriting, i am just wondering how my web server whether i should have a jsession id appended or not, because cookies has not come into the picture at all.

Please let me know if my question is clear? I guess I am confusing myself with sometime simple here.Please explain?

Thanks.

KartikVa at 2007-7-13 3:07:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
The session objects are in memory objects whose attributes can be set.So even if the browser does not support cookies the encodeURL helps to retrieve the in-memory session object of the webserver and help maintain a state of a session
dumb_javaa at 2007-7-13 3:07:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...