Make WordPress Core


Ignore:
Timestamp:
10/20/2003 08:53:13 PM (23 years ago)
Author:
emc3
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/b2verifauth.php

    r221 r458  
    55/* checking login & pass in the database */
    66function veriflog() {
    7         global $HTTP_COOKIE_VARS;
     7        global $HTTP_COOKIE_VARS,$cookiehash;
    88        global $tableusers, $wpdb;
    99
    10         if (!empty($HTTP_COOKIE_VARS["wordpressuser"])) {
    11                 $user_login = $HTTP_COOKIE_VARS["wordpressuser"];
    12                 $user_pass_md5 = $HTTP_COOKIE_VARS["wordpresspass"];
     10        if (!empty($HTTP_COOKIE_VARS["wordpressuser_".$cookiehash])) {
     11                $user_login = $HTTP_COOKIE_VARS["wordpressuser_".$cookiehash];
     12                $user_pass_md5 = $HTTP_COOKIE_VARS["wordpresspass_".$cookiehash];
    1313        } else {
    1414                return false;
    … …  
    3939                header('Cache-Control: no-cache, must-revalidate');
    4040                header('Pragma: no-cache');
    41                 if (!empty($HTTP_COOKIE_VARS["wordpressuser"])) {
     41                if (!empty($HTTP_COOKIE_VARS["wordpressuser_".$cookiehash])) {
    4242                        $error="<strong>Error</strong>: wrong login or password";
    4343                }
Note: See TracChangeset for help on using the changeset viewer.