Skip to content

Commit 0d5cbf4

Browse files
committed
improve session handling recipe
1 parent 1e38fd9 commit 0d5cbf4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/recipes/session-handling.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Lucee allows use of 2 types of sessions:
3737
You can define the type used in the Lucee Administrator or .CFConfig.json like this
3838
```json
3939
{
40-
sessionType: "cfml"
40+
"sessionType": "cfml"
4141
}
4242
```
4343
and overwrite it in the Application.cfc like this
@@ -53,7 +53,7 @@ https://docs.oracle.com/cd/B31017_01/web.1013/b28959/sessions.htm#:~:text=When%2
5353
You can enable session management in the Lucee Administrator or .CFConfig.json like this
5454
```json
5555
{
56-
sessionManagement: true
56+
"sessionManagement": true
5757
}
5858
```
5959

@@ -67,7 +67,7 @@ By default sessions are enabled
6767
You can set the default session idle timeout in the Lucee Administrator or .CFConfig.json like this
6868
```json
6969
{
70-
sessionTimeout: "0,0,30,0"
70+
"sessionTimeout": "0,0,30,0"
7171
}
7272
```
7373

@@ -83,7 +83,7 @@ Lucee allows to define a storage for sessions, by default this is "memory", what
8383
You can set the default session storage in the Lucee Administrator or .CFConfig.json like this
8484
```json
8585
{
86-
sessionStorage: "memory"
86+
"sessionStorage": "memory"
8787
}
8888
```
8989
and overwrite it in the Application.cfc like this
@@ -107,7 +107,7 @@ In case you are using a cache or a datasource as storage you can define how the
107107
You can set the default session distribution mode in the Lucee Administrator or .CFConfig.json like this
108108
```json
109109
{
110-
sessionCluster: false
110+
"sessionCluster": false
111111
}
112112
```
113113
and overwrite it in the Application.cfc like this

0 commit comments

Comments
 (0)