I have a webapplication (JSF, CDI, EJB, Primefaces, WildFly Server). For authetication I use Apache Shiro.
My current problem is: How can I reset all Beans? So I have some SessionBeans (javax.enterprise.context.SessionScoped) for example: - DeviceBean - OrderBean
This session beans contains some information like device and order. This is also available for not authenticated users. In some more detail: I have a terminal computer. This terminal computer is using for 5 minutes PersonA. This user creates a order. After 5 minutes PersonB would like to use the terminal computer. But PersonA would like to delete his order and device information on the browser (not in the database). So I need a button like "Logout" which clears all this information.
I need a button which clean all session beans. Moreless the same to close the browser. I tried many things but nothing works.
How can I do this?