781* into a session cookie,return0.782*783* @since 3.7.0784*785* @param int$expires The expiry time,as passed to setcookie().786*/787$expire=apply_filters('post_password_expires',time()+10*DAY_IN_SECONDS);788789if($redirect_to){790$secure=('https'===parse_url($redirect_to,PHP_URL_SCHEME));791}else{792$secure=false;793}
History
Introduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.