Hey all.

I suppose I'm not understanding Webware sessions very well. I'm trying
to detect if a session has expired by doing what seems obvious:

if self.session().isExpired():
    etc ...

Further, I want to check later to see if this user has logged in:

if not self.session().hasValue('loginid'):
    try:
       etc ...

I'm trying to do both of these things by inheriting from an
AuthFrame.py class which adds this checking and some other things to a
BasicFrame.py class which, in turn, is my basic template which extends
Page.

Classes which inherit from AuthFrame also inherit from the FormKit
mixin, like this:

class manager(FormKitMixIn, AuthFrame):
    etc ...

Well, neither of these seem to be doing the trick for me. When the
session expires normally (i.e., I just let the time run out), the
'manager' page, which looks for the 'loginid' session value at some
point, complains when it can't find that value. If I delete the
session cookie manually, then I get the same result, a complaint
looking for that non-existent session value which I'm referencing
somewhere int the class. The thing is, my hope was to short-circuit
that check in AuthFrame.py and redirect the user to the login page in
the event of a session timeout.

So that's my dilemma. Obviously, I'm missing something very basic and
I'm sorry if this is a newbie question, but it's throwing me ...

All the best and thank you for any help you can spare,

Greg


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Webware-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to