[nbj2ee] redirect after invalidate
- From: João Cabral < >
- To: < >
- Subject: [nbj2ee] redirect after invalidate
- Date: Mon, 6 Feb 2012 17:20:56 -0000
Hi I have a problem with an redirect after an invalidade; In a session scoped bean I need to perform a validation after the users login. In the posConstruct, I have something like: If (!userOk()) { HttpSession session = (HttpSession) FacesUtils.getHttpSession(false); if (session != null) { session.invalidate(); FacesUtils.redirect("worirhportalp.jsf"); } } This works fine in a windows environment but give me an exception (Cannot create a session after the response has been committed) in a Solaris environment (both with glassfish 3.1) |
|
[nbj2ee] redirect after invalidate |
João Cabral | 02/06/2012 |
