BBjspSessionUtil::saveSessionData


Description

In BBj 17.0 and higher, this method saves the BBjspSessionData to the context's database.

Syntax

Return Value

Method

void

saveSessionData(string contextName, BBjspSessionData session)

Parameters

Variable

Description

contextName

the name of the BBJSP context

session

the session data

Return Value

None.

Remarks

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