3 * Creates the password cookie and redirects back to where the
9 /** Make sure that the WordPress bootstrap has run before continuing. */
10 require( dirname(__FILE__) . '/wp-load.php');
12 if ( get_magic_quotes_gpc() )
13 $_POST['post_password'] = stripslashes($_POST['post_password']);
16 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
18 wp_safe_redirect(wp_get_referer());