# Session



# Functions

- **function-csrfgeneratetoken** - Provides a random token and stores it in the session.
- **function-csrfverifytoken** - Validates the given token against the same stored in the session for a specific key.
- **function-sessioncommit** - Force saving the session to storage, useful when sessionCluster is enabled.
- **function-sessionexists** - Returns a boolean indicating if a session has been already created / exists.
- **function-sessioninvalidate** - Invalidates or cleans up the current session.
- **function-sessionrotate** - invalidate current session, creates a new session and migrate the data from the old session to the new.
- **function-sessionstarttime** - Provides information about the time when the current users session scope was created.

# Tags

- **tag-application** - Defines a CFML Application and configures the properties / behavior of that Application

# Guides

- **monitoring-enable-for-your-session** - Shows you a way to enable Monitoring for your session
- **session-handling** - Comprehensive guide on session handling and configuration in Lucee, including session types, storage options, and security considerations.
- **database-for-session** - The why and how to use a database for session data storage