[Bug 387896] populate session in SessionAuthentication as a valueBound in addition to activation so it is populate when needed

This commit is contained in:
Jesse McConnell 2012-08-28 11:24:14 -05:00
parent 7af3d5c047
commit f7793ae94d
1 changed files with 7 additions and 0 deletions

View File

@ -119,16 +119,23 @@ public class SessionAuthentication implements Authentication.User, Serializable,
public void sessionWillPassivate(HttpSessionEvent se)
{
}
public void sessionDidActivate(HttpSessionEvent se)
{
if (_session==null)
{
_session=se.getSession();
}
}
public void valueBound(HttpSessionBindingEvent event)
{
if (_session==null)
{
_session=event.getSession();
}
}
public void valueUnbound(HttpSessionBindingEvent event)