_user_cancel_session_regenerate

_user_cancel_session_regenerate()

Implements callback_batch_finished().

Finished batch processing callback for cancelling a user account.

See also

user_cancel()

File

core/modules/user/user.module, line 776
Enables the user registration and login system.

Code

function _user_cancel_session_regenerate() {
  // Regenerate the users session instead of calling session_destroy() as we
  // want to preserve any messages that might have been set.
  \Drupal::service('session')->migrate();
}
doc_Drupal
2016-10-29 09:57:23
Comments
Leave a Comment

Please login to continue.