Skip to main content

Share Cookies between multiple WordPress sites

February 11, 20151 min read
/** This post is now outdated. You can find the updated version here. **/   Let me just start by saying finding information regarding this topic was plentiful, but there wasn’t really a solid way or explanation on this process. Hopefully I can make it easy enough to follow. The process is different for Multi-Site and Separate Installs so make sure you follow the correct instructions. I’ll start by helping you with the common steps then we’ll break down into the individual tasks.
  1. wp-config.php
    • Lets assume that your website is www.example.com and you have a second site at either “number2.example.com” or “www.example.com/number2” as either one works for this.
    • in your main site’s config file (www.example.com) you will be adding a few lines
      • define('SECRET_SALT', 'Random_String'); define('ADMIN_COOKIE_PATH', '/'); define('COOKIEPATH', '/'); define('SITECOOKIEPATH', '/'); define('COOKIEHASH', md5('Random_String'));
    • Replace “Random_String” with a random string of letters, numbers, and characters. I just used the WordPress salt generator and took one of the strings from there.
    • I know that was difficult to do but now your website’s will use the same cookies for their logins…
    • NOTE: If you have two WordPress installs you will use the exact same settings above for BOTH wp-config.php files.

Explore a website growth scenario

Change the assumptions to see how traffic and inquiries affect the estimated lifetime revenue of customers acquired in one month. The starting values are examples. This calculator does not measure lost revenue or predict what a redesign will achieve.

Use the same monthly period for visitors and leads.

Use distinct inquiries attributable to those visitors.

Your own estimate of the share that fits your business.

Use your observed rate or label it as an assumption.

Revenue across the customer relationship, before costs.

A scenario you choose, not a prediction from Stoute.

For example, adding 1 point changes a 2% conversion rate to 3%.

One month’s acquired customers

Customers under current assumptions
3.0
Customers in your scenario
3.0
Current cohort’s estimated lifetime revenue
$3,000
Scenario cohort’s estimated lifetime revenue
$3,000
Difference across those customers’ lifetimes
$0

Visitor-to-lead rate: 2.0% → 2.0%. Scenario conversion is limited to 0–100%. Fractional customers represent an average, not a literal customer count.

These amounts are gross lifetime revenue, not monthly cash flow, profit, or return on investment. The model holds qualification, close rate, and customer value constant. It excludes project costs, advertising, delivery costs, and payment timing.

Have a specific WordPress improvement in mind? Describe it in a written inquiry.