getSessionInfo Method

Package: Aladdin

Description

Retrieves information regarding a session context.

Syntax

String Aladdin.Hasp.getSessionInfo ( String format )

Parameters

format

Definition of the data to be returned by the method, in XML format.

info

Reference of the string that receives the output (in XML format).

Usage Notes

When using the Create C2V parameter, the Sentinel protection key must be accessible by the local machine.

The retrieved session information applies to:

>A deployed Sentinel protection key

>The current or a specific login session

>Various updates, including license updates, firmware updates, and memory updates.

NOTE   To defeat a protection key emulator attempting to bypass software protection, you can check periodically that the protection key is available and that a session for the key exists. This should not be done using GetSessionInfo (this method does not detect a remote broken session). Instead, use one of the following methods: Encrypt, Decrypt, Read, Write. These methods will return HASP_BROKEN_SESSION if a session for the protection key does not exist.

Related Topics

Format XML Tags

GetInfo Method

GetLastError Method