BBjspSessionUtil::loadSessionData (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 17.0 and higher, this method loads an instance of a BBjspSessionData from the context's database. If the specified session ID does not exist then a new entry will be created.

Syntax

Return Value

Method

BBjspSessionData

loadSessionData(string contextName, string sessionID)

BBjspSessionData

loadSessionData(BBjspWebRequest request, BBjspWebResponse response)

Parameters

Variable

Description

contextName

the name of the BBJSP context

request

the BBjspWebRequest

response

the BBjspWebResponse

sessionID

the session ID to load

Return Value

The BBjspSessionData identified by the sessionID

Remarks

None.

Example

declare BBjspSessionData data!

data! = BBjspSessionUtil.loadSessionData("MyContext","0013AB63419035")

if (!data!.contains("FOO")) then
    data!.addAttribute("FOO","This is Foo")
endif

BBjspSessionUtil.saveSessionData(context!.getContextName() ,data!)

See Also

BBJSP

BBjspSessionData