Hi,
I've been busy reworking session structure (compiles, but some testing
is still needed). As it is now:
* session handling is now in EHTML, mod_c is not aware of session handling.
* session id are still binary, but handy methods in SessionID class
are provided
to get it in hexadecimal, urlencoded, and base64encoded.
* still need to parse Cookie header value (for cookie based sessions).
* still have to test a little bit the default session driver (this
only suffered cosmetic
changes).
* Attached are
o Session.h, which includes SessionID, SessionIDDriver (for
session ID generation), SessionDriver (for session data storage).
o Dictionary.h (basically a map<string,string>)
o DefaultSessionDriver.{h,cpp}: this is how default session driver
has been reworked.
o Plugin.h: as a reference.
Session class provide serialize & marshall methods, whose are used by
the session drivers to store & retrieve session information.
SessionID can be encoded in hex, rfc1728 (urlencoded), or base64.
Should have a default for storing in html forms, urls & Cookie http
header.
I will begin testing this bunch of code. Any sugestions are more than welcome.
Regards,
--
Gonzalo A. Arana
|