Last active
April 5, 2016 12:32
-
-
Save roryl/17bc39fbee29c804e24d286a743df084 to your computer and use it in GitHub Desktop.
Lucee Cache Session Storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfdump var="#now()#"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment