isolates the session set as a function, so you can use the trigger_event() to add additional session vars (or anything else)