From b3108f97f1d1f335cb2b2db4f998ee9ba61793bf Mon Sep 17 00:00:00 2001 From: avl Date: Tue, 18 Aug 2009 15:13:39 +0300 Subject: [PATCH] (no commit message) --- ipf/http/response.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ipf/http/response.php b/ipf/http/response.php index 1f279f7..55d2a46 100644 --- a/ipf/http/response.php +++ b/ipf/http/response.php @@ -2,7 +2,8 @@ class IPF_HTTP_Response { - public $content = ''; + public $short_session = false; + public $content = ''; public $headers = array(); public $status_code = 200; public $cookies = array(); @@ -84,10 +85,14 @@ class IPF_HTTP_Response foreach ($this->headers as $header => $ch) { header($header.': '.$ch); } + if ($this->short_session) + $exp = 0; + else + $exp = time()+31536000; foreach ($this->cookies as $cookie => $data) { // name, data, expiration, path, domain, secure, http only setcookie($cookie, $data, - time()+31536000, + $exp, IPF::get('cookie_path', '/'), IPF::get('cookie_domain', null), IPF::get('cookie_secure', false), -- 2.49.0