Since HTTP has no status, you must maintain an identifier that can track your session. Two main ways are to use cookies to store the identifier or embed the identifier in the URL, usually doing URL rewriting.
You can look at WT , which is a web-based toolkit written in C ++. see also this SO question for a list of C ++ web framework. you'll probably find how they handle sessions.
my2c
neuro
source share