Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-59

Add get_session() method to request object

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.1.3, 3.1.4, 3.2.7
    • None
    • session
    • None
    • All

    Description

      Users will get session instances by calling req.get_session(). If a session already exists it will be returned, otherwise a new session instance will be created. Session configuration will be handled using apache directives rather than within their code.

      Using this scheme means only one session instance will be created per request, which will eliminate the deadlock problems many people experience. Also, using this scheme makes it possible for sessions to be properly handled within psp pages and across req.internal_redirect() calls.

      Code will be commited to svn shortly.

      Attachments

        1. Session.py.diff.txt
          2 kB
          Graham Phillip Dumpleton

        Activity

          People

            jgallacher James Paul Gallacher
            jgallacher James Paul Gallacher
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: