-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1469 from MitrahSoft/Added_function_28_02_25
Added the sessionExists() and GetSystemPropOrEnvVar() functions.
- Loading branch information
Showing
11 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
docs/03.reference/01.functions/getsystemproporenvvar/_arguments/name.md
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 @@ | ||
Optional, when set, the value of the property as configured is returned. |
8 changes: 8 additions & 0 deletions
8
docs/03.reference/01.functions/getsystemproporenvvar/_examples.md
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,8 @@ | ||
```lucee+trycf | ||
// List all system properties | ||
<cfdump var="#GetSystemPropOrEnvVar()#" /> | ||
// Return the configured value; otherwise, return empty | ||
<cfdump var="#GetSystemPropOrEnvVar('lucee.cache.variableKeys')#" /> | ||
``` |
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions
9
docs/03.reference/01.functions/getsystemproporenvvar/function.md
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,9 @@ | ||
--- | ||
title: GetSystemPropOrEnvVar | ||
id: function-getsystemproporenvvar | ||
related: | ||
categories: | ||
- server | ||
--- | ||
|
||
Return the list of supported system properties or env vars Lucee supports. |
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,9 @@ | ||
```lucee+trycf | ||
<cfdump var="#sessionExists()#" label="Before declaring session"> | ||
<cfset session.name = "lucee" /> | ||
<cfdump var="#sessionExists()#" label="After declaring session"> | ||
``` |
Empty file.
Empty file.
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,13 @@ | ||
--- | ||
title: SessionExists | ||
id: function-sessionexists | ||
related: | ||
- tag-application | ||
- function-sessioninvalidate | ||
- function-sessionrotate | ||
- function-sessionstarttime | ||
categories: | ||
- session | ||
--- | ||
|
||
Returns a boolean indicating if a session has been already created / exists. |
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