<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>Session and validate_request()</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi again,<BR>
it seems like I'm in trouble again:)<BR>
lets imagine I have modular random session application,<BR>
and initialize session variables in main script (specified as start_page script in application<BR>
constructor) in validate_request() method.<BR>
I hoped that validate_request() called on each request.<BR>
The problem: if user have no actions for a while, session is dead because of session timeout.<BR>
And if user try to request after dead session any page he gets an exception, because of session is dead,<BR>
and no session variables any more. So he got no variable exception trace.<BR>
<BR>
The way to avoid this is to put check of session<BR>
variables existence in each .py module, but this is brute force method.<BR>
Is any smart solution already exists for this kind of problem?<BR>
<BR>
thanks in advance,<BR>
denis</FONT>
</P>

</BODY>
</HTML>