Hasp.GetSessionInfo Method

Namespace: Aladdin.Hasp

Description

Retrieves information regarding a session context.

Syntax

HaspStatus GetSessionInfo ( String format,
                            ref String info
                          )

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).

Return Values

A HaspStatus status code.

Usage Notes

When using the Hasp.UpdateInfo 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