'Save session data.'

def save(self):

    try:
        if self.loaded:
            t = datetime.timedelta(seconds=(self.timeout * 60))
            expiration_time = (self.now() + t)
            if self.debug:
                cherrypy.log(('Saving    with    expiry    %s' % expiration_time), 'TOOLS.SESSIONS')
            self._save(expiration_time)
    finally:
        if self.locked:
            self.release_lock()
