Cookies are now unique, based on siteurl, allowing multiple installs under a single domain name.

git-svn-id: https://develop.svn.wordpress.org/trunk@458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell
2003-10-20 20:53:13 +00:00
parent 5440f4bde1
commit 620001f33e
11 changed files with 45 additions and 42 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
It doesn't need to connect to the DB, or do anything fancy at all. Yum.
-- Matt
*/
setcookie('wp-postpass', $HTTP_POST_VARS['post_password'], time()+60*60*24*30);
include_once('wp-config.php');
setcookie('wp-postpass_'.$cookiehash, $HTTP_POST_VARS['post_password'], time()+60*60*24*30);
header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']);
?>