users@glassfish.java.net

Glassfish security - login status

From: <glassfish_at_javadesktop.org>
Date: Sun, 31 May 2009 06:53:15 PDT

Hi,

My webapplication is secured with Form based security and a JDBC realm. The webapp is built using Facelets.

When I log in to the application i would like to show a "Logout" button. But if I am not logged in, instead a login button must be visible. How can I get the status for the current session, if the user is logged in or not? I hope to be able to do this in a managed bean for example...

Thanks,
Mattias
[Message sent by forum member 'nightzero' (nightzero)]

http://forums.java.net/jive/thread.jspa?messageID=348560