Issue Details (XML | Word | Printable)

Key: MODPYTHON-59
Type: New Feature New Feature
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Jim Gallacher
Reporter: Jim Gallacher
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
mod_python

Add get_session() method to request object

Created: 14/Jun/05 11:49 AM   Updated: 20/Oct/06 02:47 PM
Return to search
Component/s: session
Affects Version/s: 3.1.3, 3.1.4, 3.2.7
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works Session.py.diff.txt 2005-08-09 09:22 PM Graham Dumpleton 2 kB
Environment: All

Resolution Date: 20/Oct/06 02:47 PM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.