Skip to content

Commit

Permalink
Merge pull request #1469 from MitrahSoft/Added_function_28_02_25
Browse files Browse the repository at this point in the history
Added the sessionExists() and GetSystemPropOrEnvVar() functions.
  • Loading branch information
zspitzer authored Feb 28, 2025
2 parents 6caec85 + 5af433a commit 910113b
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 2 deletions.
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.
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.
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.
9 changes: 9 additions & 0 deletions docs/03.reference/01.functions/sessionexists/_examples.md
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.
13 changes: 13 additions & 0 deletions docs/03.reference/01.functions/sessionexists/function.md
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.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ It's important to realize that the memory requirements stated here are for Lucee
* Requires manual configuration of NGINX

### Tomcat Support ###

* Tomcat 9.X
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ id: tips-compilecode

Return to [[faq-s]] or [[tips-and-tricks]]


## CommandBox ##

You can also leverage CommandBox along with [cfml-compiler](https://www.forgebox.io/view/cfml-compiler/version/1.0.6)

```
box cfcompile sourcePath=./src destPath=./compiled cfengine=lucee@6
```

0 comments on commit 910113b

Please sign in to comment.