[Bese-devel] Logout in UCW

Marco Baringer mb at bese.it
Wed Jun 1 17:47:04 UTC 2005


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"

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen



More information about the bese-devel mailing list