Re: [Cppcms-users] Question About session().save()
Brought to you by:
artyom-beilis
|
From: Lee E. <lee...@gm...> - 2013-05-08 14:37:12
|
if you look here: http://cppcms.com/cppcms_ref/latest/classcppcms_1_1session__interface.html#aa0f2443a9fb6a791f1cce35d03fdbd93 you will see that normally you should not call session.save at all - it starts to be usable only if you decide to build your own session storage - and in that case, you will control what the save actually does On Wed, May 8, 2013 at 3:23 PM, SIMON Allan <All...@su...> wrote: > Hello > > It seems to me that one can't used session().save() two times during > the generation of one HTTP answer, > i.e the second information is going to be ignored > > > session()["message"] = "bla"; > session().save() ; > session()["username"] = "foo"; > session().save(); > > Is it wanted? If yes, can the documentation be updated about this side > effect ? > > http://cppcms.com/cppcms_ref/latest/classcppcms_1_1session__api.html#a9388c15001d0e55d31b6d54c9a1edca0 > > Thank you. > > Regards, > > Allan SIMON > Tatoeba Administrator (Sysko) > > > > > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- -- lee Lee Elenbaas lee...@gm... |