System Info:
Problem:
Why is it that in ost_session
, the session_expire
field is set to exactly 1 day (86400 seconds) from now, when my settings in the Agent Settings section of the Admin Panel is set to 30 minutes?
Here are the Agents Settings:
Here is the session_expire
value from the database:
I have another problem with sessions which might be related - where after 1 day, when I try to sign-in again with the Agent I will get a duplicate key error from the ost_session
table. When I try to sign-in, it shows this error in the logs which also shows the expiry being set to 86400 seconds (1 day).
[INSERT INTO `ost_session` SET `session_id` = '<sample_session_id>', `session_data` = '<sample_session_data>', `session_expire` = (NOW() + INTERVAL 86400 SECOND), ...]
Duplicate entry '<sample_session_id>' for key 'ost_session.PRIMARY'<br /> <br />
---- Backtrace ----<br />
#0 (root)/include/mysqli.php(201): osTicket->logDBError('DB Error #1062', '[INSERT INTO `o...')<br />
#1 (root)/include/class.orm.php(3466): db_query('INSERT INTO `os...', true, true)<br />
#2 (root)/include/class.orm.php(658): MySqlExecutor->execute()<br />
#3 (root)/include/class.ostsession.php(234): VerySimpleModel->save()<br />
#4 (root)/include/class.ostsession.php(159): DbSessionBackend->update('<sample_session_id>', '...')<br />
#5 [internal function]: SessionBackend->write('<sample_session_id>', '...')<br />
#6 [internal function]: session_write_close()<br />
#7 {main}
Thanks