Re: [Cppcms-users] per request data storage?
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-12-05 15:21:11
|
http://cppcms.com/wikipp/en/page/cppcms_1x_sessions Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 12/5/13, Heiko Irrgang <hi...@93...> wrote: Subject: [Cppcms-users] per request data storage? To: cpp...@li... Date: Thursday, December 5, 2013, 4:50 PM Hi there, how can i save data per request? I store the user id in a browser cookie, then there is a function called getCurrentUser() which looks into the cookie, then gets the user from the database. Obviously i do not want to have a database query every time getCurrentUser() is called within one request, so i want to store the current user for the current request. How can i do this? Thanx in advance. -- Heiko ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |