roundcubemail/program/lib/Roundcube/rcube_utils.php
public static function setcookie($name, $value, $exp = 0)
    {
        if (headers_sent()) {
            return;
        }

        $cookie = session_get_cookie_params();
        $secure = $cookie['secure'] || self::https_check();

        setcookie($name, $value, $exp, $cookie['path'], $cookie['domain'], $secure, true);
    }
public static function setcookie($name, $value, $exp = 0)
    {
        if (headers_sent()) {
            return;
        }

        $cookie = session_get_cookie_params();
        $secure = $cookie['secure'] || self::https_check();

        setcookie($name, $value, $exp, $cookie['path'], $cookie['domain'], $secure, true);
    }
public static function setcookie ( $ name , $ value , $ exp = 0 ) { if ( headers_sent ( ) ) { return ; } $ cookie = session_get_cookie_params ( ) ; $ secure = $ cookie [ 'secure' ] || self :: https_check ( ) ; setcookie ( $ name , $ value , $ exp , $ cookie [ 'path' ] , $ cookie [ 'domain' ] , $ secure , true ) ; }
Helper method to set a cookie with the current path and host settings

@param string Cookie name
@param string Cookie value
@param string Expiration time
Helper method to set a cookie with the current path and host settings