diff options
author | Jesse McConnell | 2012-08-28 16:24:14 +0000 |
---|---|---|
committer | Jesse McConnell | 2012-08-28 16:24:14 +0000 |
commit | f7793ae94d6969d41892d46bb3865efa26c6b35f (patch) | |
tree | 55d6a0477d53474a77561eff0ff6c285aa3bcd07 /jetty-security/src/main | |
parent | 7af3d5c047f4e11f220c53db6a09e624f1b50fdc (diff) | |
download | org.eclipse.jetty.project-f7793ae94d6969d41892d46bb3865efa26c6b35f.tar.gz org.eclipse.jetty.project-f7793ae94d6969d41892d46bb3865efa26c6b35f.tar.xz org.eclipse.jetty.project-f7793ae94d6969d41892d46bb3865efa26c6b35f.zip |
[Bug 387896] populate session in SessionAuthentication as a valueBound in addition to activation so it is populate when needed
Diffstat (limited to 'jetty-security/src/main')
-rw-r--r-- | jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java index 74f143b05f..260d5ddd3f 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/SessionAuthentication.java @@ -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) |