$_SESSION is an array variable that contains the data for the current active session.
# Metadata
Platforms: server OS: mac, windows, linux Introduced: 5.0 Security:
# Syntax
$_SESSION
# Examples
put $_SESSION into tSessionArray
put "ben" into $_SESSION["user_name"]
put $_SESSION["id"] into tSessionID
# Description
Use the $_SESSION keyword to access the array containing the data for the current active session.
$_SESSION is only available when running in CGI mode (Server).
# Tags
# See
- **command:** stop session, start session, delete session - **property:** sessionSavePath, sessionLifetime, sessionId, sessionName