set sesstion store function