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-30 23:37:01
|
Even though cookies are stored in browser they are sent by servers or
servers have to send cookies to browser to be stored and hence you can
always set that. CppCMS recommends session data in cookies or you can store
it server side also.
On Sun, Dec 1, 2013 at 3:24 AM, Eric Gendron <con...@gm...> wrote:
> Maybe I'm wrong...
> But...
> What I understand about sessions, is that... the cookie is the serial
> number of the session... not the content of "my_key". Your key belongs to
> the session..
>
> So..
>
> the session can exist (get_cookie return something) but the key inside the
> session may not exist at the same time of course (is_set(my_key) return
> false).
>
>
>
>
> On Fri, Nov 29, 2013 at 6:29 AM, 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
>>
>>
>
>
> ------------------------------------------------------------------------------
> 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
|