sessions don't work in asynchronous mode
Brought to you by:
artyom-beilis
When I use
booster::intrusive_ptr<gameServer> c = new gameServer(service);
service.applications_pool().mount(c);
instead of
service.applications_pool().mount(cppcms::applications_factory<gameServer>());
sessions vanish with each new request.
Is it a bug?
Anonymous
There are several differences between synchronous application and asynchronous ones.
One of such a difference is session loading as it may be potentially blocking (depending on a backend) and stall entire event loop, so to use sessions in asynchronous application you need to load it explicitly.
See: http://cppcms.com/cppcms_ref/1.0.0/classcppcms_1_1session__interface.html#details
Closing this issue as it is invalid