Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

ConnectSession vs. ConnectSessionContainer

Avatar

Level 2

   I know that  a ConnectSessionContainer creates it's childs after authentification is succesful, but how I can create a ConnectSessionContainer session in one module and pass the session to another module?

   Can somenone give an example ?

2 Replies

Avatar

Employee

There are two ways,

1) You can assign urModule.session =  ConnectSession.primarySession;

or

2) You can just set urModule.session = urConnectSessionContainer (I remember this working for me)

Avatar

Level 2

  Your answer is correct, but because the application is modular, I forgot to create an instance of ConnectSession in the main application, so when I created the instance in one of the module and send it to another module, the second module cast te variable to null.