optimised session helper