protected function setSessionCookie($identifier, $sessionId, $lifetime, $path, $domain, $ssl, $httpOnly = null)
    {
        // calculate concrete expiration date/time
        $expire = time() + $lifetime;

        // check for httpOnly - cause only supported >= 5.2
        if (null !== $httpOnly && $this->getFlagStatus('httpOnly')) {
            session_set_cookie_params($lifetime, $path, $domain, $ssl, $httpOnly);
            $result = setcookie($identifier, $sessionId, $expire, $path, $domain, $ssl, $httpOnly);

        } else {
            session_set_cookie_params($lifetime, $path, $domain, $ssl);
            $result = setcookie($identifier, $sessionId, $expire, $path, $domain, $ssl);

        }

        return $result;
    }
protected function setSessionCookie($identifier, $sessionId, $lifetime, $path, $domain, $ssl, $httpOnly = null)
    {
        // calculate concrete expiration date/time
        $expire = time() + $lifetime;

        // check for httpOnly - cause only supported >= 5.2
        if (null !== $httpOnly && $this->getFlagStatus('httpOnly')) {
            session_set_cookie_params($lifetime, $path, $domain, $ssl, $httpOnly);
            $result = setcookie($identifier, $sessionId, $expire, $path, $domain, $ssl, $httpOnly);

        } else {
            session_set_cookie_params($lifetime, $path, $domain, $ssl);
            $result = setcookie($identifier, $sessionId, $expire, $path, $domain, $ssl);

        }

        return $result;
    }
protected function setSessionCookie ( $ identifier , $ sessionId , $ lifetime , $ path , $ domain , $ ssl , $ httpOnly = null ) { // calculate concrete expiration date/time $ expire = time ( ) + $ lifetime ; // check for httpOnly - cause only supported >= 5.2 if ( null !== $ httpOnly && $ this -> getFlagStatus ( 'httpOnly' ) ) { session_set_cookie_params ( $ lifetime , $ path , $ domain , $ ssl , $ httpOnly ) ; $ result = setcookie ( $ identifier , $ sessionId , $ expire , $ path , $ domain , $ ssl , $ httpOnly ) ; } else { session_set_cookie_params ( $ lifetime , $ path , $ domain , $ ssl ) ; $ result = setcookie ( $ identifier , $ sessionId , $ expire , $ path , $ domain , $ ssl ) ; } return $ result ; }
Configures the session cookie parameter.

@param string $identifier The identifier to set
@param string $sessionId  The current session id
@param int    $lifetime   The lifetime of the session and cookie
@param string $path       The path for the session cookie validity (default = / = all subfolder)
@param string $domain     The domain to set
@param bool   $ssl        TRUE to submit cookie via SSL only, otherwise FALSE to do not so
@param mixed  $httpOnly   NULL (default) to do not set this flag, TRUE to set, FALSE to do not

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE if operation was successful, otherwise FALSE
Configures the session cookie parameter .