I login to my web application using form based JAAS authentication. I use the following code to log out from that application.
session.invalidate();
But, log out is not working correctly. Please can anyone help me to do the logout task. I have been stuck on this matter for hours. I use following login module to log on to application.
<security-domain name="other" cache-type="default">
<authentication>
<login-module code="Database" flag="required">
<module-option name="dsJndiName" value="java:jboss/datasources/jbpmDS"/>
<module-option name="principalsQuery" value="select password from users where username=?"/>
<module-option name="rolesQuery" value="select userrolename,'Roles' from user_role where id IN (select user_role_id from user_user_roles INNER JOIN users on user_user_roles.user_id IN (select id from users where username=?));"/>
</login-module>
</authentication>
</security-domain>