[Cppcms-users] Session problem
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-04-10 09:21:58
|
I've got a JSON-RPC service that needs to load a content class because it stores a list of different aircraft. void JSON_Service::build_aircraft_list(int location) data::Master content; apps::Master ctr(service()); ctr.init(); //setup sql ctr.prepare(content); ctr.clear(); // teardown sql } The problem is I can't access the session. If I try something like ctr.session() the JSON service freezes. It seems to work if I call session() directly from build_aircraft_list, but I need to access the session() from inside prepare(). Why can't the apps::Master controller access session? Thank you Petr |