implemented session service and cookie service