Home Help Center

Session

dashiedashie Member Maurizio MerliOrganization: Università degli Studi di MilanoProject: N/A
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.

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    One way for do it is using a facade

    read this thread for more info
    http://www.zeroc.com/vbulletin/showthread.php?t=1714
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    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.
Sign In or Register to comment.