Archived
This forum has been archived. Please start a new discussion on GitHub.
about change session
hello
I use the glaice2 to manage the sessions.
first, I use createSession with a userID= A and password= XXX to create a Session
and now , I want to destory the session which userID=A, then create a new session which userID=B
what my problem is, when I use the router's function destorySession, it raise a exception
help me
so thanks
I use the glaice2 to manage the sessions.
first, I use createSession with a userID= A and password= XXX to create a Session
and now , I want to destory the session which userID=A, then create a new session which userID=B
what my problem is, when I use the router's function destorySession, it raise a exception
help me
so thanks
0
Comments
-
Hi,
Yes, this is expected, you should catch ConnectionLostException:try { router‑>destroySession(); } catch (const Ice::ConnectionLostException&) { // Expected }
See see 43.3.6 in the Ice manual for more information.
Cheers,
Benoit.0