[ZPatterns] LoginManager and Timeout
Steve Spicklemire
[email protected]
Thu, 22 Aug 2002 10:16:45 -0500
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.
-steve
On Thursday, August 22, 2002, at 10:11 AM, Lorenz Polsky wrote:
> 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
>>> [email protected]
>>> http://www.eby-sarna.com/mailman/listinfo/zpatterns
>>
>> _______________________________________________
>> ZPatterns mailing list
>> [email protected]
>> http://www.eby-sarna.com/mailman/listinfo/zpatterns
>