We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333866e commit eab5085Copy full SHA for eab5085
interface/lib/classes/session.inc.php
@@ -68,8 +68,11 @@ function write ($session_id, $session_data) {
68
$this->session_array = array();
69
}
70
71
- // Dont write session to DB if session data has not been changed after reading it.
+ // Dont write session_data to DB if session data has not been changed after reading it.
72
if(isset($this->session_array['session_data']) && $this->session_array['session_data'] != '' && $this->session_array['session_data'] == $session_data) {
73
+ $session_id = $this->db->quote($session_id);
74
+ $last_updated = date('Y-m-d H:i:s');
75
+ $this->db->query("UPDATE sys_session SET last_updated = '$last_updated' WHERE session_id = '$session_id'");
76
return true;
77
78
0 commit comments