Skip to content

Commit

Permalink
do not trigger onesessionend
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Oct 17, 2024
1 parent 7fdd2f8 commit cf0bd1c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions core/src/main/java/lucee/runtime/listener/ModernAppListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,17 +351,16 @@ public void onSessionEnd(CFMLFactory factory, String applicationName, String cfi
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);
// pc = createPageContext(factory, app, applicationName, cfid, ON_SESSION_END, false, -1);
// ThreadLocalPageContext.register(pc);
// call(app, pc, ON_SESSION_END, new Object[] { pc.sessionScope(false), pc.applicationScope() },
// true);
}
finally {
if (existing != null) {
ThreadLocalPageContext.register(pc);
}
else if (pc != null) {
factory.releaseLuceePageContext(pc, true);
}
/*
* if (existing != null) { ThreadLocalPageContext.register(pc); } else if (pc != null) {
*/ // factory.releaseLuceePageContext(pc, true);
// }
}
}
catch (Throwable t) {
Expand Down

0 comments on commit cf0bd1c

Please sign in to comment.