2024-09-03 20:05:49 +08:00
|
|
|
# core_role (subsystem) Upgrade notes
|
|
|
|
|
2024-10-05 15:08:28 +08:00
|
|
|
## 4.5
|
2024-09-03 20:05:49 +08:00
|
|
|
|
|
|
|
### Added
|
|
|
|
|
2024-09-27 18:45:07 +07:00
|
|
|
- All session management has been moved to the `\core\session\manager` class.
|
|
|
|
This removes the dependancy to use the `sessions` table.
|
2024-09-27 19:15:05 +07:00
|
|
|
|
2024-09-27 18:45:07 +07:00
|
|
|
Session management plugins (like Redis) should now inherit
|
|
|
|
the base `\core\session\handler` class, which implements
|
|
|
|
`SessionHandlerInterface`, and override methods as required.
|
2024-09-27 19:15:05 +07:00
|
|
|
|
2024-09-27 18:45:07 +07:00
|
|
|
The following methods in `\core\session\manager` have been deprecated:
|
2024-10-04 21:03:11 +07:00
|
|
|
| Old method name | New method name |
|
|
|
|
| --- | --- |
|
|
|
|
| `kill_all_sessions` | `destroy_all` |
|
|
|
|
| `kill_session` | `destroy` |
|
|
|
|
| `kill_sessions_for_auth_plugin` | `destroy_by_auth_plugin` |
|
|
|
|
| `kill_user_sessions` | `destroy_user_sessions` |
|
2024-09-03 20:05:49 +08:00
|
|
|
|
|
|
|
For more information see [MDL-66151](https://tracker.moodle.org/browse/MDL-66151)
|