you should look for PortalEventListener.
when user login, logout or session expire, your listener will get a callback. You can set
your portalsession attribute here.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228867#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...