users@glassfish.java.net

Re: Get a session object after login with Realm

From: Miroslav Nachev <miro_at_space-comm.com>
Date: Tue, 10 Mar 2009 08:37:41 +0200

You can use ThreadLocal (InheritableThreadLocal) to store your session
specific things.


Miro.


On Tue, Mar 10, 2009 at 12:46 AM, <glassfish_at_javadesktop.org> wrote:

> I'm interested in the same functionality: inserting an object into the
> session once a user has been authenticated.
>
> Is there a way from within the custom realm code to get a reference to the
> session or servlet context?
> [Message sent by forum member 'ae6rt' (ae6rt)]
>
> http://forums.java.net/jive/thread.jspa?messageID=335945
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>