Once session is live I'm trying to pass it to class
which needs to use session object for computing some data. I can
see that the session is not persisting when being passed to an object. How can I make sure that
the session persists. Or is the solution that I have to reconnect the session
within the class?