...
> The login process works fine but I would like find a solution to
> perform logout (J)easly :)
>
> Now the actual solution is closing the browser to invalidate the
> session.
there's no (j)easy way to solve this issue, because "basic
authorization" isn't designed by specification for a logout-scenary.
There are lots of discussions around this issue in the web:
http://stackoverflow.com/questions/449788/http-authentication-logout-via-php
The simple approach: create another Access-Object with same title (but
other credentials) besides your main Access-Object. If you want to
logout, simlpy redirect/forward the request to this second
Access-object (or just point your "Logout"-link to the URI of the
second Access object), which sends a new validation request. If the
user just hits "cancel" on the dialog, he/she is logged out. Not very
nice from a UI perspective, but maybe the only solution which works
across all browsers.
HTH, Maik