Jörn Zaefferer schrieb:
Ⓙⓐⓚⓔ schrieb:
"/" for a path is great. every page will share the cookies,
KLAUS & Jörn, wouldn't it be a nice default? This is "server wide
cookies".
If you added a domain ".example.com" You have "all 'subhost' cookies".
If you added a domain "example.com <http://example.com>" You have
"domain wide cookies".
the 2 last are often mixed up and there is very little difference!
BUT old cookies for "/test" would still be visible to a page under
"/test" like "/test/xyz.html"
I hope you never have to clean up your team's crummy cookie remains!
Seems like that would solve a lot of the problems with cookies. I'm
planning a few additions to the cookie plugin anyway. Klaus?
With this as a default if you want to use the cookie default again (path
of page that created the cookie), you'd have to code something like the
following which is not intuitive at all:
$.cookie('name', 'value', { path: null });
I'd really prefer to rely on the existing defaults here. It should be up
to the programmer to take care of these important details.
-- Klaus