Skip navigation
JBossDeveloper
Log in
Register
JBoss Community Archive (Read Only)
Home
Content
Places
Search
Cancel
Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page.
All Places
>
Seam
>
Seam 2
>
Discussions
Please enter a title.
You can not post a blank message. Please type your message and try again.
Body
This project is read only now.
0 Replies
Latest reply
on Aug 9, 2010 6:38 AM by eswaramoorthy1986
Prevent back page visit after logout in seam
eswaramoorthy1986
Aug 9, 2010 6:38 AM
Dear All
how to prevent back page visit after logout in seam . I would be thankful if you could help me on this issue
I use this code for logout
Name("authenticator")
public class Authenticator
{
@Logger private Log log;
@In Identity identity;
public String authenticate() {
log.info("User logged in: " + identity.getPrincipal().getName());
return "home";
}
public String logout() {
log.info("User logging out..");
identity.logout();
Session.instance().invalidate();
return "login";
}
}
This content has been marked as final.
Show 0 replies