split session storage func