Apache Mod-Python - Created: (MODPYTHON-59) Add get_session() method to request object

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > June 2005 > Created: (MODPYTHON-59) Add get_session() method to request object





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Created: (MODPYTHON-59) Add get_session() method to request object
Jim Gallacher (JIRA)

2005-06-14, 2:46 am

Add get_session() method to request object
------------------------------------------

Key: MODPYTHON-59
URL: http://issues.apache.org/jira/browse/MODPYTHON-59
Project: mod_python
Type: New Feature
Components: core
Versions: 3.2.0
Environment: All
Reporter: Jim Gallacher


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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com