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
First what you have to do, before changing web.xml is to make sure your ManagedBean implements Serializable:
implements Serializable
@ManagedBean @ViewScoped public class Login implements Serializable { }
Especially if you use MyFaces