Session Handling and interaction between scripts