diff options
author | maluke <devnull@localhost> | 2008-05-28 10:18:39 +0000 |
---|---|---|
committer | maluke <devnull@localhost> | 2008-05-28 10:18:39 +0000 |
commit | c7650b9216fc51958661ac9776f8e5d92ad2a189 (patch) | |
tree | becc4f0d7e5fbced474a8854a3bcdf6aed39aa4a /paste/session.py | |
parent | 17d0f5861607738f25ee4bb119cbcea2245dec9d (diff) | |
download | paste-c7650b9216fc51958661ac9776f8e5d92ad2a189.tar.gz |
Fixed test suite on Windows (also disabled CGI tests as they shouldn't even work)
Diffstat (limited to 'paste/session.py')
-rw-r--r-- | paste/session.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/paste/session.py b/paste/session.py index 93a1c23..5f57b92 100644 --- a/paste/session.py +++ b/paste/session.py @@ -30,6 +30,7 @@ import os import md5 import datetime import threading +import tempfile try: import cPickle @@ -79,7 +80,7 @@ class SessionFactory(object): session_class=None, session_expiration=60*12, # in minutes **session_class_kw): - + self.created = False self.used = False self.environ = environ @@ -171,7 +172,7 @@ cleanup_cycle = datetime.timedelta(seconds=15*60) #15 min class FileSession(object): - def __init__(self, sid, create=False, session_file_path='/tmp', + def __init__(self, sid, create=False, session_file_path=tempfile.gettempdir(), chmod=None, expiration=2880, # in minutes: 48 hours ): @@ -295,7 +296,7 @@ def make_session_middleware( session_expiration: The time each session lives, in minutes. This controls - the cookie expiration. Default 12 hours. + the cookie expiration. Default 12 hours. expiration: The time each session lives on disk. Old sessions are |