[Bese-devel] Logout in UCW
Antonio Menezes Leitao
aml at gia.ist.utl.pt
Thu Jun 2 10:49:57 UTC 2005
"Marco Baringer" <mb at bese.it> writes:
> Antonio Menezes Leitao <aml at gia.ist.utl.pt> writes:
>
>> Hi,
>>
>> I would like to know what is the best way to implement a logout action
>> in UCW. My idea is that I should delete the current session and
>> present the login component again but I'm unsure about the best way of
>> doing it. Currently, I'm doing the following:
>>
>> (defaction logout ((w foo-window))
>> (delete-session (context.application *context*)
>> (context.session *context*))
>> (call 'login))
>
> this is just fine (and very similar to what i've done occasionaly).
>
>> Is this OK? Is there a better way (maybe choosing the login entry
>> point for the application)?
>
> sorry, i don't understand "choosing the login entry point for the
> application"
What I meant was to somehow specify that after deleting the session,
ucw should behave just like if the user had written in his browser the
URL associated with the entry point of the application (where he is
presented with the login screen).
Thanks a lot,
António Leitão.
More information about the bese-devel
mailing list