Re: [Cppcms-users] The role of cookie path
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2016-07-11 14:07:36
|
I see, does it happend with server side session storage? Can you track all the requests using browser debugger and see what is transferred in each request. What you are telling me is quite strage. Artyom > - Server responds with the page. > > - Client gets the page from "http://localhost/normal". > > - I manually manipulate the page through browser and cause this > javascript to be called: > window.location.replace("http://localhost/special"); > (I do this in order to download a static file from > "http://localhost/special" without navigating away the current page.) > > - Server receives the request for "http://localhost/special" along with > the cookie encrypted in prefix same as the one it was requested for page > "http://localhost/normal". However, > session().is_set("my_cookie"); > returns false this time! > > 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(). > > Any idea? Please! > > Best Regards, > CN > > -- > http://www.fastmail.com - mmm... Fastmail... > > > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |