[mod_python] How to check if session is created because of old session expired?

Radosław Rymaszewski rrymaszewski at contentforces.pl
Tue Aug 5 04:42:39 EDT 2008

>> Maybe it could be good to add information in new session when old
>> session expired?
> And how is it supposed to do that without keeping forever a record of
> all old sessions?

In my opinion if there is flag (1) for new session so if You are
checking old one and it's expired then You can use flag (e.g. 2)
instead of (1).

Function is_new() for this two flags will return True in both cases so
there should not be problem with it  (in almost all cases ;-).

You don't need to keep this information forever, because You need to
check this only once. You can delete this information similar to
is_new flag is deleted.

Of course old sessions could be marked to be clean up.

Please correct me if I am wrong, because I didn't check how works
creating new session after old session expired.


More information about the Mod_python mailing list