getVariable
Object session.getVariable ( String identifier )
Description
Retrieve the value of a saved session variable.
Parameters
- identifier The name of the variable whose value is to be retrieved, as a string.
Return Values
Returns the value of the session variable. This will be a string unless you have used setVariable to place something other than a string into a session variable.
Change Log
Version | Description |
---|---|
4.5 | Available for all editions. |
Examples
Retrieve Session Variable
// Places the session variable "CITY_CODE" in the local
// variable "cityCode".
cityCode = session.getVariable( "CITY_CODE" );
// variable "cityCode".
cityCode = session.getVariable( "CITY_CODE" );
See Also
- addToVariable() [session] - Adds an integer to the value of a session variable.
- getv() [session] - Retrieve the value of a saved session variable (alias of getVariable).
- setv() [session] - Set the value of a session variable (alias of setVariable).
- setVariable() [session] - Set the value of a session variable.
scraper on 07/16/2010 at 4:54 pm
- Printer-friendly version
- Login or register to post comments