Skip to content

Commit

Permalink
improve session handling recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Feb 19, 2025
1 parent 2332852 commit 14065c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/recipes/session-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ The following storage options are available:
- "memory" - Stores session data in server memory for the full life cycle. Best for single-server deployments.
- "cookie" - Stores session data in the user's browser cookies. Should be avoided for security reasons and limited by cookie size restrictions.
- "file" - Stores session data in local files. Good for development but may cause issues in clustered environments.
- <datasource-name> - Name of an existing datasource. Session data is stored in a table named "cf_session_data". Lucee automatically creates this table if it doesn't exist. Suitable for clustered environments.
- <cache-name> - Name of an existing cache (e.g., Redis, Memcached). Ideal for distributed systems requiring high performance.
- [datasource-name] - Name of an existing datasource. Session data is stored in a table named "cf_session_data". Lucee automatically creates this table if it doesn't exist. Suitable for clustered environments.
- [cache-name] - Name of an existing cache (e.g., Redis, Memcached). Ideal for distributed systems requiring high performance.

Lucee does not store "empty" sessions (sessions containing only default keys) into storage to optimize resource usage.

Expand Down

0 comments on commit 14065c8

Please sign in to comment.