Re: [Cppcms-users] The role of cookie path
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2016-07-12 04:32:04
|
On Sunday, July 10, 2016 01:37:09 PM CN wrote: > I can not figure out why server recognizes all the sent in cookies when > it is requested for "http://localhost/normal", but it denies all the > sent in cookies when it is requested for "http://localhost/special" by > client javascript call window.location.replace(). I don't understand. Does setting window.location.replace() causes a GET request to be sent to the server? Or do you have an AJAX call of some sort in your javascript? In any case, you must make sure that the cookies are sent. My guess is that it's nothing to do with the URL, but with the way the request to the server is generated. If the browser directly requests http://localhost/special, the cookies would be set, won't it? Just shooting in the dark, in the hope that it may shed some light in the situation. augustin. . |