Skip to content

Instantly share code, notes, and snippets.

@roryl
Last active April 5, 2016 12:32
Show Gist options
  • Save roryl/17bc39fbee29c804e24d286a743df084 to your computer and use it in GitHub Desktop.
Save roryl/17bc39fbee29c804e24d286a743df084 to your computer and use it in GitHub Desktop.
Lucee Cache Session Storage
component {
this.sessionTimeout = createTimeSpan(0,0,20,0); //Set a default session timeout of 20 minutes
this.sessionStorage = "session"; //Set our session storage to the lucee_sessions datasource
function onSessionStart(){
}
function onRequestStart(){
session.someData = "My Data";
writeDump(session);
writeDump(cacheGetAllIds(cacheName="session"));
}
}
<cfdump var="#now()#">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment