[mod_python] error with session handling in mod_python.servlet

Vinj Vinj vinjvinj at yahoo.com
Thu Sep 2 11:25:07 EDT 2004


I'm get the following errow ehn I use :

use_session in the servlet.

I'm get the same error in the tutorial as well. Any
clues on what might be going wrong?

Thanks.


Mod_python error: "PythonHandler mod_python.servlet"

Traceback (most recent call last):

  File
"C:\Python23\Lib\site-packages\mod_python\apache.py",
line 299, in HandlerDispatch
    result = object(req)

  File
"C:\Python23\lib\site-packages\mod_python\servlet.py",
line 1453, in handler
    servlet.prep()

  File
"C:\Python23\lib\site-packages\mod_python\servlet.py",
line 593, in prep
    timeout=self.session_timeout)

  File
"C:\Python23\lib\site-packages\mod_python\Session.py",
line 388, in Session
    timeout=timeout, lock=lock)

  File
"C:\Python23\lib\site-packages\mod_python\Session.py",
line 360, in __init__
    timeout=timeout, lock=lock)

  File
"C:\Python23\lib\site-packages\mod_python\Session.py",
line 132, in __init__
    Cookie.add_cookie(self._req, self.make_cookie())

  File
"C:\Python23\lib\site-packages\mod_python\Session.py",
line 165, in make_cookie
    self.write(c)

AttributeError: 'MemorySession' object has no
attribute 'write'


More information about the Mod_python mailing list