Session (Object)

Member of:

Application object

Description:

Refers to the current Web browser’s session variables. The Session (Object) contains three collections, which logically group a browser’s different type of data variables. The Session (Object) applies to the Web plug-ins but is visible in the client server product to support script testing. To activate the Session object, you must include the key value pair JScript=enable in the URL. Please refer to URL (Object) and Form (Object) for more information.

Do not use this object model syntax in Interactive Reporting documents to be deployed in EPM Workspace:

Note:

If a form launches the Interactive Reporting Web Client with the “withnav” variant of the Smartcut, the Session.Form collection items is inaccessible. In this instance, use withnav_get or withnav_run. This behavior can be set as the default mode for a Smartcut by editing the ws.conf line to show: WebClient.UserInterface.Navigation.ShowNavigationBar=true

Example:

This script shows determines if a session is active and process the session variables:

//Session.Active = true if the script is running in the plug-in and JScript=enable
if (Session.Active)
         Alert("Your web username is ="+ Session.Cookies["HYPERIONUSER"], "Web Username")
else
         Alert("You are not running a plug-in or you have not added the JScript=enable key value pair to your URL")

Methods:

None

Properties:

Read-only: Property Active As Boolean

Collections

Form as Form, Cookies as Cookies, URL as URL