Session

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
User avatar
DomotikQuebec
Posts: 34
Joined: 14 Jan 2016 19:06
Location: Quebec City, Canada
Contact:

Session

Post 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 ?
Mario Gravel
Domotik Quebec
bogr
Posts: 190
Joined: 16 Nov 2015 22:46

Re: Session

Post by bogr »

Did you find a solution for this?
User avatar
PoltoS
Posts: 7571
Joined: 26 Jan 2011 19:36

Re: Session

Post 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.
bogr
Posts: 190
Joined: 16 Nov 2015 22:46

Re: Session

Post 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?
Post Reply