4 The sessionHandlerService
The sessionHandlerservice adds three functions to the
CONNECTION object that the
top-level component sees.
The three functions are:
- getSession(create=0, **cookieParams)
- if create is true, will
create (and return) a new session (in the cookie, with extra paraters
in cookieParams), otherwise will return an existing session, if it
exists, otherwise returns None.
- getSessionID(create=1)
- get session id from cookie, or create it if create is true, otherwise returns None.
- removeSession()
- kills the session cookie.