Page 1 of 1

Session

Posted: 29 Feb 2016 21:45
by DomotikQuebec
I want some information about the session.
  • 1 : Is is accessible from the modules ? Can we access the session_id ?
    2 : Is it possible to end the session ?
For now I'm forcing the deletion of the cookie but I want to get some way of closing or ending a session.
Any possibilities ?

Re: Session

Posted: 19 Sep 2016 23:18
by bogr
Did you find a solution for this?

Re: Session

Posted: 23 Sep 2016 19:32
by PoltoS
Please search for verifySession in ZAutomationAPIProvider.js. I'm not saying it is accessible from modules, but at least you can have a look how we handle it.

Re: Session

Posted: 23 Sep 2016 22:21
by bogr
ok, but isn't there an "almighty" global object that can be used for passing around data wherever in the call stack you are at the moment (regardless of modules etc), like e.g. in web apps the HTTPSession? Then that session object could be used everywhere in the code as a placeholder for global data and then fetched where it is needed?