Ejemplo n.º 1
0
    def create_session(self, request):
        # TODO: Possible optimization here for settings.get
        s = session.Session(self._connection, self, request,
                            self.settings.get('session_expiry'))

        self._sessions.add(s)

        return s
Ejemplo n.º 2
0
    def create_session(self, request):
        """Creates new session object and returns it.

        `request`
            Request that created the session. Will be used to get query string
            parameters and cookies.
        """
        # TODO: Possible optimization here for settings.get
        s = session.Session(self._connection, self, request,
                            self.settings.get('session_expiry'))

        self._sessions.add(s)

        return s
Ejemplo n.º 3
0
 def create_session(self, handler):
     return session.Session(self._connection, self, handler,
                            self.settings.get('session_expiry'))