Share session between my site and WP blog [closed]

You can do this in your init or config file.

    ini_set('session.cookie_domain', substr($_SERVER['SERVER_NAME'], strpos($_SERVER['SERVER_NAME'],"."), 100));

Whenever PHP sets the ‘PHPSESSID’ cookie, the cookie will be available to all over the site including Blog.

error code: 523