Accessing session properties from scripting module

What’s the proper syntax to getting to these session properties from a gateway script. When using them on a view, I use “self.session.myParameter”. In scripting module, self is not defined. Thanks a bunch.

You would have to pass a session object into the functions defined in your module to operate on. You don’t just randomly have a session anywhere you’re writing code.