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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)