Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the sessionExists() and GetSystemPropOrEnvVar() functions. #1469

Merged
merged 3 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```