[Cppcms-users] per request data storage?
Brought to you by:
artyom-beilis
|
From: Heiko I. <hi...@93...> - 2013-12-05 15:17:41
|
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 |