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

Add get_session() method to request object

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.1.3, 3.1.4, 3.2.7
    • Fix Version/s: None
    • Component/s: session
    • Labels:
      None
    • Environment:
      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 Dumpleton

          Activity

            People

            • Assignee:
              jgallacher Jim Gallacher
              Reporter:
              jgallacher Jim Gallacher
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: