$webinfo ("SessionCommands")

Use $webinfo("SessionCommands" to invoke session management API calls.

$webinfo("SessionCommands"), CommandName, CommandParameters

Parameters

Parameters

Parameter

Data Type

Description

CommandName

String

Session management command

CommandParameters

String

One or more parameters for the command

Description

Use the session management API to invalidate the current session and request a new session, optionally setting or deleting session attributes when doing so. This should only be required at critical points in the web application transaction, for example, after login and logoff, or before committing sensitive data. For more information, see APIs: Session Management.

Session attributes are name-value pairs that are maintained by the WRD. Any application that can access the J2EE container (the servlet engine) can access the session attributes for the duration of the session. This can be useful if you are using, for example, a Java application instead of a Uniface component for authentication.

To examine session attributes in Uniface, you can use the retrieve the SESSIONATTRIBUTES property using $webinfo("WebServerContext"). For more information, see $webinfo ("WebServerContext") .

Setting Session Attributes

putitem/id $webinfo ("SessionCommands"), "SetAttributes " , "DATA1=New;Data2=ed"
History

Version

Change

9.5.01

Introduced "SESSIONCOMMANDS"

Related Topics