Change record status: 
Project: 
Introduced in branch: 
9.2.x
Introduced in version: 
9.2.0-alpha1
Description: 

In order to use PHP's session ID generation we've removed \Drupal\Core\Session\SessionManager::migrateStoredSession(). There is no direct replacement. This method was not part of the public API. Custom implementations of SessionManagerInterface that extend SessionManager need to be updated to not call this method. In Drupal 9.2.0 session regeneration is now performed by calling session_regenerate_id() in \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::regenerate().

If the custom implementation exists to override the migrateStoredSession() method this code can be removed once the custom code only supports Drupal 9.2.x and up.

Code that uses session will not have to change because of this method removal. If you wish to migrate the session to a new session ID you still call \Drupal::service('session')->migrate();

Impacts: 
Module developers