users@glassfish.java.net

Re: Access session informations from JSF managedbean

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Thu, 26 Jul 2007 13:29:34 +0200

HttpSession session =
FacesConfig.getCurrentInstance().getExternalContext().getRequest().getSession();
should work.
-Alexis

glassfish_at_javadesktop.org wrote:
> Hi,
> I try to get some session informations ( e.g. CreationTime ) via JSF and a managedbean.
> With my former tomcat servlets this was no problem. I got this informations with:
>
> request.getSession().getCreationTime()
>
> How can I do this with JSF ?
>
> Regards
>
> Volker Jordan
> [Message sent by forum member 'vjordan' (vjordan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=228323
>