[mod_python] New session

Paolo Franzetti paolo at lambrate.inaf.it
Tue May 20 04:12:58 EDT 2008

Dear all,

in my application I have the simple line:

current_session = Session.Session(req,timeout=3600)

After having executed this command I can check if the
session is new using the current_session.is_new() functions.

My question is:
is there a way to know if the session is new because the old
session (recovered from a cookie) has expired or because
there was no session to recover ?

Thank you for any suggestion,

More information about the Mod_python mailing list