projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dfa866
)
DataObjects/Person.php
author
Alan Knowles
<alan@roojs.com>
Thu, 22 Oct 2015 05:29:16 +0000
(13:29 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 22 Oct 2015 05:29:16 +0000
(13:29 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
177f6c8
..
b72ccc9
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-454,6
+454,8
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
$p->get($this->pid());
$d = $p->toArray();
+ $_SESSION[get_class($this)][$sesPrefix .'-auth-timeout'] = time() + (30*60); // eg. 30 minutes
+ setcookie('Pman.timeout', time() + (30*60));
//var_dump(array(get_class($this),$sesPrefix .'-auth'));
$_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object)$d);