[ZPatterns] LoginManager and Timeout

Lorenz Polsky polka2038@yahoo.fr
23 Aug 2002 18:05:14 +0200


Hi Steve

how can I know if the user done something (were authenticated) ?
it's probably  stupid question, but I'm newbie with zope and python !!!


Lorenz
=20
Le jeu 22/08/2002 =E0 17:16, Steve Spicklemire a =E9crit :
>=20
> Right... the problem is that the cookie hasn't expired... in your=20
> 'userAuthenticate' method, you need to authenticate only if the user has=20
> "done something" within a certain time. The only thing the cache_expire=20
> time does is to call your userAuthenticate after the set interval.
>=20
> -steve
>=20
> On Thursday, August 22, 2002, at 10:11  AM, Lorenz Polsky wrote:
>=20
> > Hi Steve
> > Thank you for your answer.
> >
> > I had tried to use the parameter cache_expire.  I had fixed it at 60 (I
> > supposed that the unit was the second).  But the authenticate form was
> > not displayed!!!!
> >
> > I don't understand where is the problem!
> >
> >
> > JM
> >
> > Le jeu 22/08/2002 =E0 16:00, Steve Spicklemire a =E9crit :
> >> Hi Lorenz,
> >>
> >> 	I've not actually *done* this, but there is already a cache timeout
> >> defined in the BasicUserSource (and GUS). You can implement your=20
> >> timeout
> >> by authenticating your user or not based on how long it's been since
> >> they've done something. Your userAuthenticate should be called every
> >> time the UserSource cache times out (based on the value set in the
> >> Properties tab of the UserSource).
> >>
> >> 	There are probably other ways.. but I think they might all involve
> >> subclassing LoginManager objects..
> >>
> >> Good Luck!
> >> -steve
> >>
> >> On Thursday, August 22, 2002, at 08:26  AM, Lorenz Polsky wrote:
> >>
> >>> Hello
> >>>
> >>> I created an application, which uses loginmanager with cookies!  I=20
> >>> would
> >>> like to implement a timeout!  but I do not know how to do!!
> >>>
> >>> can you help me
> >>>
> >>> Lorenz
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> ZPatterns mailing list
> >>> ZPatterns@eby-sarna.com
> >>> http://www.eby-sarna.com/mailman/listinfo/zpatterns
> >>
> >> _______________________________________________
> >> ZPatterns mailing list
> >> ZPatterns@eby-sarna.com
> >> http://www.eby-sarna.com/mailman/listinfo/zpatterns
> >
>=20
> _______________________________________________
> ZPatterns mailing list
> ZPatterns@eby-sarna.com
> http://www.eby-sarna.com/mailman/listinfo/zpatterns