GWC Template Language Reference / Template Paths - Application hierarchy |
Path: application/meta/variable[name]
Session variables are held by a collection. As a result, there is a collection path application/meta/variables to iterate through the full collection of variables, as well as a selector path to access variables by name.
Fields | Type | Description |
---|---|---|
application/meta/variable/XDID | Attribute (string) | Name of the session variable for JavaScriptâ„¢ usage. |
application/meta/variable/name | Attribute (string) | Name of the session variable. |
application/meta/variable/value | Attribute (string) | Value of the session variable. |
application/meta/variable/readOnly | Attribute (boolean) | True if the session variable is read-only. |
<h3>List of current session variables</h3> <div gwc:omit-tag="true" gwc:repeat="var application/meta/variables"> <p> <span gwc:content="var/name" style="color:red;"/><br/> <span gwc:content="'XDID='+ var/XDID" /><br/> <span gwc:content="'value='+ var/value" /><br/> <span gwc:content="'readOnly='+ var/readOnly" /><br/> </p> </div>
For more details about session variables usage, see the chapter Session Variables and Cookies.