I have an urgent question that I really need answered. I am using the sdk to log on to enterprise. This works fine and when I look at the sessions in the CMC for that user I can see one session. When I use this token to call the OpenDocument url, a second session is created for that users. Everytime I call OpenDocument passing in the token a new session is created. This is a major problem. I would have thought because I am passing in the token, that OpenDocument would attach itself to the first session.
correct me if wrong,
you are problably using below code.
IEnterpriseSession boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( “Administrator”,“admin1”,“BOSERVER”,“secEnterprise”);
ILogonTokenMgr token = boEnterpriseSession.getLogonTokenMgr();
String mytoken = token.getDefaultToken();
and then using “mytoken” in URL.
Instead use createWCAToken("",100,1)
arg1 if left blank will allow any computer access present in network
createWCAToken(java.lang.String clientComputerName, int validMinutes, int validNumOfLogons)
Creates a logon token that can be used for multiple logons without increasing the session count.
As far as I know and seen in my system using logon token created session.
So I made changes in the my custom code.
Even after invalidating the BO session. 1 extra session was seen in CMC
I started using “createWCAToken(”",100,1)"
you can use posted code to test it with diffrent kinds token functions from below link.