Menu

#35 asynchronous applications automatically load session data

2.0
open
nobody
None
8
2016-07-14
2016-07-14
CN Liou
No

Asynchronous applications do not automatically load session data including cookies because doing so is costly according to documentation:

http://cppcms.com/cppcms_ref/latest/classcppcms_1_1session__interface.html#ae63e68dd2ec1d615f5a6a85bcee36605

Asynchronous applications not calling

bool cppcms::session_interface::load()

beforehand and try to access session data such as cookies will get unexpected results. Unfortunately, programmers like myself tend to repeatedly fall into this "trap".

request: If the auto loading is not too costly for asynchronous applications, please reconsider enabling automatic loading in favor of the benefit of programmers over system performance.

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.