class SessionError(Exception):


class Session(Object):

    ## Init ##
    def __init__(self, trans):

    ## Access ##
    def creationTime(self):
    def lastAccessTime(self):
    def identifier(self):
    def isExpired(self):
    def isNew(self):
    def timeout(self):
    def setTimeout(self, timeout):

    ## Invalidate ##
    def invalidate(self):

    ## Values ##
    def value(self, name, default=Tombstone):
    def hasValue(self, name):
    def setValue(self, name, value):
    def delValue(self, name):
    def values(self):
    def __getitem__(self, name):
    def __setitem__(self, name, value):
    def __delitem__(self, name):

    ## Transactions ##
    def awake(self, trans):
    def respond(self, trans):
    def sleep(self, trans):
    def expiring(self):

    ## Utility ##
    def sessionEncode(self, url):

    ## Exception reports ##
    def writeExceptionReport(self, handler):