Re: [Cppcms-users] Session data from client does not reach cppcms::rpc::json_rpc_server method?
Brought to you by:
artyom-beilis
|
From: Shiv S. D. <shi...@gm...> - 2013-11-29 11:48:50
|
If you want to retrieve session().is_set("my_key") which appears to be your
key
then before retrieving you need to set it as shown in
http://cppcms.com/wikipp/en/page/cppcms_1x_sessions
For example,
session().set("my_key", true);
before it will return true.
On Fri, Nov 29, 2013 at 4:59 PM, CN <cn...@fa...> wrote:
> Taking void post(std::string const &author,std::string const &message)
> in file json_rpc_chat.cpp as an example,
>
> session().is_set("my_key");
>
> appears to always return false. However,
>
> session().get_session_cookie();
>
> does return a string. Am I misunderstanding http or the framework?
>
> Thank you!
> CN
>
> -- http://www.fastmail.fm - Choose from over 50 domains or use your own
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
--
Respect,
Shiv Shankar Dayal
|