775* into a session cookie,return0.776*777* @since 3.7.0778*779* @param int$expires The expiry time,as passed to setcookie().780*/781$expire=apply_filters('post_password_expires',time()+10*DAY_IN_SECONDS);782783if($redirect_to){784$secure=('https'===parse_url($redirect_to,PHP_URL_SCHEME));785}else{786$secure=false;787}
History
Introduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.