Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: .htaccess/Cookie woes!

You should need to use .htaccess. Best thing is to override the way cookies are created. For WP these are in wp-settings.php around line 185. To have a shared cookie for the whole site I changed the cookie scope replacing:

codeif ( !defined(‘COOKIEPATH’) )

define(‘COOKIEPATH’, preg_replace(‘|https?://[^/]+|i’, ”, get_option(‘home’) . ‘/’ ) );code

With:

codeif ( !defined(‘COOKIEPATH’) )

define(‘COOKIEPATH’, ‘/’ );code

Setting the www bits etc can be done in a similar way. Assuming you’ve integrated your users, if you set the cookie path to ‘/’ with domain .babyquestions.101.com you should be fine.

Skip to toolbar