projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c952da
)
DataObjects/Person.php
author
Alan Knowles
<alan@roojs.com>
Thu, 22 Oct 2015 05:30:22 +0000
(13:30 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 22 Oct 2015 05:30:22 +0000
(13:30 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
b72ccc9
..
f08dee5
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-454,8
+454,9
@@
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));
+ setcookie('Pman.timeout', time() + (30*60)
, time() + (30*60), '/'
);
//var_dump(array(get_class($this),$sesPrefix .'-auth'));
$_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object)$d);