I am using the code as below to generate the session token and append it with Opendoc of a webi Report on a Java page.
IEnterpriseSession es=null; es = CrystalEnterprise.getSessionMgr().logon("User1", "Password@123", "ServerName:6400", "secEnterprise");
ILogonTokenMgr logonToken = es.getLogonTokenMgr();
String token = logonToken.createLogonToken("",3, 1);
Now, I have 3 such links to 3 different webi reports on the page, when I click one link, one session for that user is created.
If the same user clicks on another opendoc link it creates one more session for the same user, and so on.
This way the number keep on increasing, if user clicks on different links. So if there are many users, there will be many sessions created and will take up concurrent license.
Is there any SDK code present, by which I can check if for a particular user, a session is already created and pass the token for that session, to avoid creation of Multiple session with the same user ID.