Join GitHub today
[HttpFoundation] Add Session::isEmpty(), fix MockFileSessionStorage to behave like the native one #25220
MockFileSessionStorage should not create any file when the session is empty. Like the native session storage, it should ignore the metadataBag to decide if the session is empty.
And to prevent AbstractTestSessionListener from registering a wrong cookie, it must have access to this empty state, which is now possible thanks to a new