Difference between revisions of "ISSession:Session (Top-Level Object)"
Jump to navigation
Jump to search
(→Forms) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
== Forms == | == Forms == | ||
*[[DataType:string|string]] '''Session''' | *[[DataType:string|string]] '''Session''' | ||
: Retrieves the name of the current session | : Retrieves the name of the current session | ||
*[[DataType:string|string]] '''Session['''#''']''' | *[[DataType:string|string]] '''Session['''#''']''' | ||
− | : Retrieves the name of | + | : Retrieves the name of another session, given a number. Sessions will not necessarily retain the same number for their entire duration, and session numbers for this session will not be the same as session numbers for other sessions. |
*[[DataType:int|int]] '''Session['''name''']''' | *[[DataType:int|int]] '''Session['''name''']''' | ||
− | : Retrieves the number of | + | : Retrieves the number of another session, given a name. The number is not guaranteed to be valid for long, see Session[#]. |
== Examples == | == Examples == | ||
+ | ===Display the name of the current session=== | ||
+ | *echo Current session name: ${Session} | ||
+ | ;Output | ||
+ | Current session name: is1 | ||
+ | |||
+ | == HowTo == | ||
+ | === Rename Session === | ||
+ | * See [[ISUplink:Name_%28Command%29]] | ||
== See Also == | == See Also == | ||
*[[LavishScript:Top-Level Objects|LavishScript Top-Level Objects]] | *[[LavishScript:Top-Level Objects|LavishScript Top-Level Objects]] | ||
*[[IS:Session#Top-Level Objects|Inner Space Session Top-Level Objects]] | *[[IS:Session#Top-Level Objects|Inner Space Session Top-Level Objects]] | ||
+ | |||
+ | {{TLO-Stub}} | ||
+ | [[Category:Inner Space]] | ||
+ | [[Category:Inner Space Session]] | ||
+ | [[Category:Inner Space Session Top-Level Objects]] |
Latest revision as of 17:16, 4 October 2011
Contents
Forms
- string Session
- Retrieves the name of the current session
- string Session[#]
- Retrieves the name of another session, given a number. Sessions will not necessarily retain the same number for their entire duration, and session numbers for this session will not be the same as session numbers for other sessions.
- int Session[name]
- Retrieves the number of another session, given a name. The number is not guaranteed to be valid for long, see Session[#].
Examples
Display the name of the current session
- echo Current session name: ${Session}
- Output
Current session name: is1