From d85eafdfadb65caddfbb905c04ac811bd4a774d3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 15 Oct 2018 13:30:28 +0800 Subject: [PATCH] DataObjects/Core_person.php --- DataObjects/Core_person.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index 7581c61b..afb90eb9 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -412,9 +412,10 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $u = DB_DataObject::factory($this->tableName()); // allow extending this ... $u->autoJoin(); if ($u->get($a->id)) { /// && strlen($u->passwd)) { // should work out the pid .. really.. - - $_SESSION[get_class($this)][$sesPrefix .'-auth-timeout'] = time() + (30*60); // eg. 30 minutes - setcookie('Pman.timeout', time() + (30*60), time() + (30*60), '/'); + if (isset($_SESSION[get_class($this)][$sesPrefix .'-auth'])) { + $_SESSION[get_class($this)][$sesPrefix .'-auth-timeout'] = time() + (30*60); // eg. 30 minutes + setcookie('Pman.timeout', time() + (30*60), time() + (30*60), '/'); + } $user = clone ($u); return clone($user); -- 2.39.2