Skip to content
Snippets Groups Projects
Commit ebcb3bc7 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed a session save issue.

parent 566c28a9
No related branches found
No related tags found
No related merge requests found
......@@ -93,8 +93,8 @@ class session {
if (@$this->session_array['session_id'] == '') {
$sql = "REPLACE INTO sys_session (session_id,date_created,last_updated,session_data,permanent) VALUES (?,NOW(),NOW(),'$session_data',?)";
$this->db->query($sql, $session_id, ($this->permanent ? 'y' : 'n'));
$sql = "REPLACE INTO sys_session (session_id,date_created,last_updated,session_data,permanent) VALUES (?,NOW(),NOW(),?,?)";
$this->db->query($sql, $session_id, $session_data, ($this->permanent ? 'y' : 'n'));
} else {
$sql = "UPDATE sys_session SET last_updated = NOW(), session_data = ?" . ($this->permanent ? ", `permanent` = 'y'" : "") . " WHERE session_id = ?";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment