Web framework agnostic management of sessions