session creation functional