Forces the current session's pending live-scope writes out to the persistent session store immediately, before a redirect or abort crosses a control-flow boundary. Normally RustCFML syncs the session at request end; this makes the sync explicit and is a no-op when there is no live session.
sessionCommit()
→ returns void
Persist session changes before a cflocation.
session.user = "alex";
sessionCommit();
// safe to redirect/abort now
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.