I have written simple application with container-managed security. The problem is when I log in and open another page on which I logout, then I come back to first page and I
You coud use your own custom AjaxExceptionHandler or primefaces-extensions
Update your faces-config.xml
... org.primefaces.extensions.component.ajaxerrorhandler.AjaxExceptionHandlerFactory ...
Add following code in your jsf page
... ...