From 5dbe8b238c819812e5adf15c6a09d689e060b0c2 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 8 Oct 2024 16:46:46 +0100 Subject: [PATCH] HamQTH - Correctly handle session key resets --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index afbed063..1eb99b36 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -4628,7 +4628,7 @@ class Logbook_model extends CI_Model // If HamQTH session has expired, start a new session and retry the search. if ($callbook['error'] == "Session does not exist or expired") { - $hamqth_session_key = $this->hamqth->session($this->config->item('hamqth_username'), $this->config->item('hamqth_password')); + $hamqth_session_key = $this->hamqth->session($this->session->userdata('callbook_username'), $decrypted_password); $this->session->set_userdata('hamqth_session_key', $hamqth_session_key); $callbook = $this->hamqth->search($callsign, $this->session->userdata('hamqth_session_key')); }