EJB3.1 logout doesn't work
Posted
by Kevin
on Stack Overflow
See other posts from Stack Overflow
or by Kevin
Published on 2010-05-23T12:41:50Z
Indexed on
2010/05/23
12:50 UTC
Read the original article
Hit count: 184
Hello,
I've got a problem with the authentication features of EJB3.1:
With this code in a Servlet v3:
log.info(""+request.getUserPrincipal());
log.info(""+request.getAuthType());
log.info("===^===");
request.logout() ;
log.info(""+request.getUserPrincipal());
log.info(""+request.getAuthType());
request.authenticate(response) ;
log.info("===v===");
log.info(""+request.getUserPrincipal());
log.info(""+request.getAuthType());
I would always expect to see the Username/login windows, because of the logout()
function. Instead, it seems to be a 'cache' mechanism which repopulate the credential and cancel my logout ...
Admin
BASIC
===^===
null
null
===v===
Admin
BASIC
is it a problem with my firefox, or something I'm missing in the Servlet code?
Thanks
© Stack Overflow or respective owner