~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/dispatch/request.py

  • Committer: drtomc
  • Date: 2008-02-13 04:44:30 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:444
dispatch: Change the session timeout to 24 hours (there doesn't seem to be
    a way of specifying "never"

install_proc.txt: document creating the sessions directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
        """Returns a mod_python Session object for this request.
276
276
        Note that this is dependent on mod_python and may need to change
277
277
        interface if porting away from mod_python."""
278
 
        # Cache the session object
 
278
        # Cache the session object and set the timeout to 24 hours.
279
279
        if not hasattr(self, 'session'):
280
 
            self.session = Session.FileSession(self.apache_req)
 
280
            self.session = Session.FileSession(self.apache_req,
 
281
                                               timeout = 60 * 60 * 24)
281
282
        return self.session
282
283
 
283
284
    def get_fieldstorage(self):