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
+3 -3
View File
@@ -118,9 +118,9 @@ if ($ok) { // if there was no comment from this IP in the last 10 seconds
if ($url == '')
$url = ' '; // this to make sure a cookie is set for 'no url'
setcookie('comment_author', $author, time()+30000000);
setcookie('comment_author_email', $email, time()+30000000);
setcookie('comment_author_url', $url, time()+30000000);
setcookie('comment_author_'.$cookiehash, $author, time()+30000000);
setcookie('comment_author_email_'.$cookiehash, $email, time()+30000000);
setcookie('comment_author_url_'.$cookiehash, $url, time()+30000000);
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');