-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDEV-4818 add sessionCommit() function
- Loading branch information
Showing
6 changed files
with
57 additions
and
11 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
core/src/main/java/lucee/runtime/functions/system/SessionCommit.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package lucee.runtime.functions.system; | ||
|
||
import lucee.runtime.PageContext; | ||
import lucee.runtime.PageContextImpl; | ||
import lucee.runtime.exp.PageException; | ||
import lucee.runtime.ext.function.Function; | ||
|
||
public class SessionCommit implements Function { | ||
private static final long serialVersionUID = -2243745577257724777L; | ||
|
||
public static String call(PageContext pc) throws PageException { | ||
((PageContextImpl) pc).sessionScope().touchAfterRequest(pc); | ||
return null; | ||
} | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<cfscript> | ||
//systemOutput(session.toJson(), true); | ||
if (!structKeyExists(session, "ldev3125")){ | ||
//systemOutput(session.toJson(), true); | ||
throw "key session.ldev3125 missing"; | ||
} | ||
//systemOutput(session.ldev3125.toJson(), true); | ||
echo(session.ldev3125.toJson()); | ||
</cfscript> |
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