Making sure the session is started before the id is regenerated