Path has to do the path where the cookie is valid

 path=PATH
    The path attribute is used to specify the subset of URLs in a
domain for which the cookie is valid. If a cookie has already passed
domain matching, then the pathname component of the URL is compared
with the path attribute, and if there is a match, the cookie is
considered valid and is sent along with the URL request. The path
"/foo" would match "/foobar" and "/foo/bar.html". The path "/" is the
most general path.

    If the path is not specified, it as assumed to be the same path as
the document being described by the header which contains the cookie.

As defined in the orignal Netscape spec

http://wp.netscape.com/newsref/std/cookie_spec.html

I have never used version before but a good guess would be that it has
to do with the cookie version.  If it works like Sun says, you should
use 0.

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/Cookie.html#getVersion()

Alvin

Reply via email to