Hai,
i am having a problem in logout using JAAS.I have the subject which is authenticated and it is is in authorized page of the subject.Now if i want to logout what should i do,even now i am calling the logout method manually in login page after checking like this
RdbmsLoginModule rd=new RdbmsLoginModule();
String remoteuser=request.getRemoteUser();
try
{
if(!remoteuser.equals(null))
{
rd.logout();
}
}
catch(Exception e)
{
}
now my logout method is called in my logout method
subject.getPrincipals().remove(rdbmsprincipal);
but even though now if i am printing
request.getUserPrincipal()
request.getRemoteUser()
after logout method is called it prints the principal and name of the last logged in user.now if i need to login as different user i was supposed to stop and restart the server again.How should i do for logout and clearing all the details of the user logged in.
Thanks in Advance,
Mahudees