#VarSESSIONVARIABLE ---+++ SESSION_VARIABLE -- get, set or clear a session variable * Session variables are stored in a personal "persistent memory space" that is not lost until the web browser is closed * Syntax: =%<nop>SESSION_VARIABLE{"name"}%= - read a session variable * Syntax: =%<nop>SESSION_VARIABLE{"name" set="value"}%= - set a session variable * Syntax: =%<nop>SESSION_VARIABLE{"name" clear=""}%= - clear a session variable * Special read-only session variables: * =%<nop>SESSION_VARIABLE{"AUTHUSER"}%= - user ID, current value: <tt>%SESSION_VARIABLE{"AUTHUSER"}%</tt> * =%<nop>SESSION_VARIABLE{"SESSION_REQUEST_NUMBER"}%= - number of pages accessed by current user since login, current value: <tt>%SESSION_VARIABLE{"SESSION_REQUEST_NUMBER"}%</tt> * Category: DevelopmentVariables, SystemInformationVariables, UsersAndAuthenticationVariables * Related: TWikiUserAuthentication#Sessions, [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarAUTHREALM][AUTHREALM]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarGET][GET]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarLOGIN][LOGIN]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarLOGOUT][LOGOUT]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSESSIONID][SESSIONID]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSESSIONVAR][SESSIONVAR]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSET][SET]]
This topic: TWiki
>
WebHome
>
TWikiVariables
>
VarSESSIONVARIABLE
Topic revision: r4 - 2012-11-15 - TWikiContributor
Copyright © 1999-2025 by the contributing authors. All material from TWiki is the property of the contributing authors.
Questions, comments, or concerns?
Contact GNHLUG
.
All use of this site subject to our
Legal Notice
(includes Terms of Service).