Archived
This forum has been archived. Please start a new discussion on GitHub.
Session
I create a Session object after authenticate a user. Now how can I share auth token from every call to other ice object as HttpSession do?
I try to use context but i have to pass it to every object. I would like to have something global.
I try to use context but i have to pass it to every object. I would like to have something global.
0
Comments
-
One way for do it is using a facade
read this thread for more info
http://www.zeroc.com/vbulletin/showthread.php?t=17140 -
Sessions have been discussed here on these forums many times. I recommend to search this forum for "session" to get more information about the various possibilities to implement sessions.0
-
You might also want to check the first article of Connections. See http://www.zeroc.com/newsletter where I wrote about session management with Glacier and the session demo which does't require Glacier (demo/Ice/session).
If you REALLY want to use a Context (which is a bad idea) then you can set this globally, on a per-proxy basis and on a per-call basis. See the Ice manual for details.0