How to run and use session data