Re: [Cppcms-users] app().session().erase() doesn't work or not permitted?
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-04-22 06:37:07
|
>________________________________ > From: "ele...@ex..." <ele...@ex...> >To: Artyom Beilis <art...@ya...>; cpp...@li... >Sent: Sunday, April 22, 2012 5:05 AM >Subject: Re: [Cppcms-users] app().session().erase() doesn't work or not permitted? > >> You can't do changes in session **after** writing **any** output >> (including just accessing to response().out() without actual I/O) >> > >I figured that out while reading the header file for session_interface. Do >you think it may be handy to include that in the doxygen API >documentation? Or maybe have it spit out a warning? > It is in Doxygen API: http://cppcms.com/cppcms_ref/latest/classcppcms_1_1session__interface.html#details Quoting: All changes in session should be done before headers are written to the output (before requesting an output stream from http::response object) Also It seems that it should be more "highlighted" there. Because it is quite FAQ there. Artyom |