function _user_cancel_session_regenerate
Same name in other branches
- 7.x modules/user/user.module \_user_cancel_session_regenerate()
- 9 core/modules/user/user.module \_user_cancel_session_regenerate()
- 10 core/modules/user/user.module \_user_cancel_session_regenerate()
- 11.x core/modules/user/user.module \_user_cancel_session_regenerate()
Implements callback_batch_finished().
Finished batch processing callback for cancelling a user account.
See also
1 string reference to '_user_cancel_session_regenerate'
- user_cancel in core/
modules/ user/ user.module - Cancel a user account.
File
-
core/
modules/ user/ user.module, line 832
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.