[HttpFoundation] Add a way to avoid the session be written at each request