Esempio n. 1
0
 protected function outputCookies()
 {
     if (isset($this->results['cookies']) && is_array($this->results['cookies'])) {
         foreach ($this->results['cookies'] as $cookie => $params) {
             if ($cookie == '') {
                 continue;
             }
             $params += array('value' => null, 'ttl' => null, 'path' => null, 'domain' => null, 'secure' => null, 'httponly' => null);
             Output::setCookie($cookie, $params['value'], $params['ttl'], $params['path'], $params['domain'], $params['secure'], $params['httponly']);
         }
     }
 }
Esempio n. 2
0
 /**
  * Output the cookie to the requesting web server (for relay to the client).
  */
 public function setCookie()
 {
     Output::setCookie(Configuration::get('session.cookie'), $this->session_key, Configuration::get('session.remember_ttl'), '/', Configuration::get('cookie_domain'));
 }