Posted: Tue May 18, 2004 12:11 pm Post subject: [SOLVED]FMC00011E Already logged on to the system
Novice
Joined: 13 May 2004 Posts: 16
I'm trying to find out the best way to recover/eliminate an abandoned session.
Here's the situation I'm testing.
The Agent is used to acquire the service object and then logon.
Some processing takes place (Workflow API's) and then an exception occurs.
If the program ends the user is still considered to be logged on so when the next logon attempt is made, the error above is thrown.
Is there a way to recover or remove the previous user's session if the SessionID was not saved? If not, then does it mean the user's workflow session must be saved to recover the previous session?
I'm just testing now and do generate some errors that end the program before the service.logoff() is executed which leaves the session lingering. Since I'm just testing now I simply stop and start the Workflow Service and everything is fine. However I don't think this is a good solution especially when it's for real.
One solution I've tried was to issue the service.logoff() during any FmcException which seems to work but I'm not sure it is a good way to go. Also, just because an exception is thrown doesn’t mean that everything should have to start over.
It seems to me that the workflow session must be saved but wanted to get expert opinion.
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
Whenever a human user is logging in, it should be with a "force" logon. I.E. use logon2 and SessionMode.PRESENT_HERE. _________________ John McDonald
RETIRED
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum