In order for it to be used in the trigger, it'll need to go into the table. So the simplest way is to have a column in that table for the session value so the trigger can see it.