[mod_python] python server pages + session

Istvan De surf-kid24 at freemail.hu
Sun Oct 15 08:38:08 EDT 2006


Hi!

Can anyone give me an example of sessions working with python server
pages?
globals() show session, but when I try to work with it, mod_python
returns a 0 byte page:

<%
req.content_type = 'text/html'

import mod_python
import sys

#session['a']=1
#req.write("session saved<BR>")
req.write("Session type: ")
req.write(session.__class__.__name__)
%>

Any help is greatly appreciated.

Best regards,
Istvan




More information about the Mod_python mailing list