mewlo.mpacks.core.session.msessionmanager module Helper for database object for storing session data

class mewlo.mpacks.core.session.msessionmanager.MewloSessionManager(mewlosite, debugmode)[source]

Bases: mewlo.mpacks.core.manager.modelmanager.MewloModelManager

The MewloSessionManager class helps session management.


Return a string (with newlines and indents) that displays some debugging useful information about the object.

get_session_for_request_storage(request, flag_makesessionifnone)[source]

Get or create a session data for a request. IMPORTANT: Only the Request object should ever call this because it needs to be stored in request if we are to associate it with client and save it, etc.

lookup_or_make_sessionobject(request, sessionidinput, flag_makesessionifnone)[source]

Lookup or make new session object (note that sessionid will be None if user does not have cookie set).


sessionid is provided by user client, sanitize it or return None on error / bad syntax.


Table Of Contents

Previous topic

mewlo.mpacks.core.session.msession module

Next topic

mewlo.mpacks.core.setting package

This Page