Skip to content

Commit

Permalink
add some static/temporary logging to see what is going on
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 17, 2024
1 parent b66a4f2 commit 7fdd2f8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,17 @@ public void onSessionEnd(CFMLFactory factory, String applicationName, String cfi
if (scope instanceof JSession) app = ((JSession) scope).getComponent();
if (app == null || !app.containsKey(ON_SESSION_END)) return;
PageContextImpl pc = null;
PageContext existing = ThreadLocalPageContext.get();
try {
pc = createPageContext(factory, app, applicationName, cfid, ON_SESSION_END, true, -1);
ThreadLocalPageContext.register(pc);
call(app, pc, ON_SESSION_END, new Object[] { pc.sessionScope(false), pc.applicationScope() }, true);
}
finally {
if (pc != null) {
if (existing != null) {
ThreadLocalPageContext.register(pc);
}
else if (pc != null) {
factory.releaseLuceePageContext(pc, true);
}
}
Expand Down

0 comments on commit 7fdd2f8

Please sign in to comment.