Returns information about the database that is being accessed in the current session.
This method differs from the GetAccessibleDatabases method in that it returns the DatabaseDescription object associated with the current session. You can only call this method after the user has logged in to a particular database.
VBScript
databaseDescObj = session.GetSessionDatabase
Perl
$databaseDescObj = $session->GetSessionDatabase();
VBScript
set sessionObj = GetSession
set dbDescObj = sessionObj.GetSessionDatabase
currentdbName = dbDescObj.GetDatabaseName
SetFieldValue "headline", currentdbName
Perl
$sessionObj = $entity->GetSession();
$dbDescObj = $sessionObj->GetSessionDatabase();
$currentdbName = $dbDescObj->GetDatabaseName();
$entity->SetFieldValue ("headline", $currentdbName);