mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-11-21 06:26:30 +00:00
Update Drupal 7 to 7.105
@see https://gitlab.com/tag1consulting/public/drupal/-/releases/7.105
This commit is contained in:
parent
c76979e3d5
commit
fb9ad88a0f
160 changed files with 276 additions and 782 deletions
|
|
@ -242,7 +242,7 @@ function _drupal_session_write($sid, $value) {
|
|||
function drupal_session_initialize() {
|
||||
global $user, $is_https;
|
||||
|
||||
session_set_save_handler('_drupal_session_open', '_drupal_session_close', '_drupal_session_read', '_drupal_session_write', '_drupal_session_destroy', '_drupal_session_garbage_collection');
|
||||
session_set_save_handler(new DrupalSessionHandler());
|
||||
|
||||
// We use !empty() in the following check to ensure that blank session IDs
|
||||
// are not valid.
|
||||
|
|
@ -620,3 +620,40 @@ function drupal_session_id($id) {
|
|||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Session handler implementation.
|
||||
*/
|
||||
class DrupalSessionHandler implements SessionHandlerInterface {
|
||||
|
||||
#[ReturnTypeWillChange]
|
||||
public function open($path, $name) {
|
||||
return _drupal_session_open($path, $name);
|
||||
}
|
||||
|
||||
#[ReturnTypeWillChange]
|
||||
public function close() {
|
||||
return _drupal_session_close();
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function read($id) {
|
||||
return _drupal_session_read($id);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function write($id, $data) {
|
||||
return _drupal_session_write($id, $data);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function destroy($id) {
|
||||
return _drupal_session_destroy($id);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function gc($max_lifetime) {
|
||||
return _drupal_session_garbage_collection($max_lifetime);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue