Re: [Cppcms-users] The role of cookie path
Brought to you by:
artyom-beilis
|
From: CN <cn...@fa...> - 2016-07-09 16:34:36
|
On Sat, Jul 9, 2016, at 08:02 PM, Artyom Beilis wrote:
> Browser does not send path information about cookies it sends to
> server in HTTP headers, actually it only sends cookie name and value -
> not domain, expiration, path or other parameters. Only server does.
> That is why you don't get this information in request().cookies() -
> server just does not have one.
Thank for answering my first question!
After client gets the page from "http://localhost/normal", it calls this
javascript:
window.location.replace("http://localhost/special");
Upon receiving the request, server shows that request().cookies() holds
item "prefix_my_cookie". On the other hand,
session().is_set("my_cookie") returns false.
Why server denies the existence of cookie "my_cookie"?
Best Regards,
CN
--
http://www.fastmail.com - mmm... Fastmail...
|