$Session, $Session_Id, $Session_Owner, and $Session_Timeout

From m204wiki
Revision as of 22:09, 6 October 2015 by JAL (talk | contribs) (misc cleanup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

$Session, $Session_Id, $Session_Owner, and $Session_Timeout

Note: Many $functions have been deprecated in favor of Object Oriented methods. There are no direct OO equivalents for the $Session, $Session_Id, $Session_Owner, and $Session_Timeout functions.

These functions accept no arguments and return the requested value associated with the current open session.

  • $Session returns a 1 (if the user has a session currently open) or a 0 otherwise.
  • $Session_Id returns the ID of the currently open session (if there is one) or a null otherwise.
  • $Session_Owner returns the owner of the currently open session (if there is one) or a null otherwise. A value of asterisk (*) indicates that the currently open session is a public session.
  • $Session_Timeout returns the timeout value of the currently open session (if there is one) or a -1 otherwise.

Products authorizing $Session, $Session_Id, $Session_Owner, and $Session_Timeout