Issue Details (XML | Word | Printable)

Key: MODPYTHON-45
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Nicolas Lehuen
Reporter: Nicolas Lehuen
Votes: 0
Watchers: 1
Operations

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

Implement a file-based session manager

Created: 08/Apr/05 06:30 AM   Updated: 05/Mar/06 01:51 PM
Return to search
Component/s: None
Affects Version/s: 3.1.4
Fix Version/s: 3.2.7

Time Tracking:
Not Specified

Resolution Date: 29/Jul/05 12:25 AM


 Description  « Hide
Right now mod_python comes with DbmSession and MemorySession. DbmSession performance can be pretty crappy if for any reason the anydbm module reverts to the dumbdbm implementation. With the current filesystems, implementing a file-based session manager should be easy and should perform well.

See the following thread : http://www.modpython.org/pipermail/mod_python/2005-April/017825.html

I've checked in a preliminary implementation based on dharana's work. We'll have to cope with a few issues (namely locking) before it is final.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nicolas Lehuen made changes - 08/Apr/05 06:30 AM
Field Original Value New Value
Summary Implement a fil-based session manager Implement a file-based session manager
Nicolas Lehuen added a comment - 30/Apr/05 04:16 PM
OK, I have integrated FileSession into Session.py (it previously was in its own module FileSession.py). Now we need a bit of documentation...

Nicolas Lehuen made changes - 01/May/05 09:04 PM
Assignee Nicolas Lehuen [ nlehuen ]
Nicolas Lehuen made changes - 01/May/05 09:04 PM
Status Open [ 1 ] In Progress [ 3 ]
dharana added a comment - 19/May/05 06:53 AM
mod_python/Session.py from (mod_python_20050518163650.tar.gz) has a typo at line +364:

        if timeout:
            self._cleanup_timeout = timeout
        else:
            self._cleanup_timeout = Session.DFT_TIMEOUT


It should be:

        if timeout:
            self._cleanup_timeout = timeout
        else:
            self._cleanup_timeout = DFT_TIMEOUT



Repository Revision Date User Message
ASF #190333 Mon Jun 13 02:23:50 UTC 2005 jgallacher Fixed Session.DFT_TIMEOUT issue mentioned in MODPYTHON-45
Files Changed
MODIFY /httpd/mod_python/trunk/lib/python/mod_python/Session.py

Repository Revision Date User Message
ASF #191740 Tue Jun 21 22:58:14 UTC 2005 jgallacher Changed FileSession to use muliple directories to store session files.
Fix results in a substantial performance improvement when there are a large number of session files.
Ref MODPYTHON-45
Files Changed
MODIFY /httpd/mod_python/trunk/lib/python/mod_python/Session.py

Nicolas Lehuen added a comment - 29/Jul/05 12:25 AM
This has been resolved a while ago. We now need some documentation.

Nicolas Lehuen made changes - 29/Jul/05 12:25 AM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Repository Revision Date User Message
ASF #230928 Mon Aug 08 23:54:16 UTC 2005 jgallacher Added FileSession documentation. The layout for this section in the PDF
format is a little strange but it is not a show stopper.
Ref MODPYTHON-45.
Files Changed
MODIFY /httpd/mod_python/trunk/Doc/modpython4.tex

Graham Dumpleton made changes - 05/Mar/06 01:51 PM
Status Resolved [ 5 ] Closed [ 6 ]