Fixed authenticated sessions being reset