Jean-frederic Clere wrote:
Hi,
I have been reading rfc2109 it gives an examples of cooky like (as the
spec's states):
+++
Cookie: $Version="1"; Part_Number="Rocket_Launcher_0001"; $Path="/acme"
+++
not sure where that syntax comes from, from what I read it looks
4.2.2 Set-Cookie Syntax
The syntax for the Set-Cookie response header is
set-cookie = "Set-Cookie:" cookies
cookies = 1#cookie
cookie = NAME "=" VALUE *(";" cookie-av)
NAME = attr
VALUE = value
cookie-av = "Comment" "=" value
| "Domain" "=" value
| "Max-Age" "=" value
| "Path" "=" value
| "Secure"
| "Version" "=" 1*DIGIT
without the "$"
But TC sends:
+++
[EMAIL PROTECTED]:~/apache-tomcat-5.5.15$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /servlets-examples/servlet/SessionExample HTTP/1.1
Host: localhost
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=7C9C55FDF8C059730F723F1BB6A4DCEE;
Path=/servlets-examples
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 1272
Date: Fri, 16 Jun 2006 21:09:13 GMT
<html>
+++
Are both Path and $Path correct?
see above, correct is Path
BTW: In mod_jk it seems we ignore Path, is that correct?
mod_jk only reads the cookie, the Path is something that the browser
looks at to decide whether to send the cookie to the server or not
The idea behind is to understand how to process something like:
JSESSIONID=bli; Path=/a/b
JSESSIONID=bla; Path=/a
I think the cookie name is unique, you can't have two cookies with the
same name
Cheers
Jean-Frederic
Filip
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Filip Hanik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]