title: extend wordpress session into main domain
body: <p>I have a site that uses wordpress for community purposes, it is installed under subdirectory "mysite/community" but when I try to call wordpress functions into "mysite" I cannot retrieve the logged user.</p>
  
  <p>Here's my sample code:</p>
  
  <pre><code>require $xcart_dir . DIR_COMMUNITY . '/wp-load.php';
  
  wp_get_current_user();
  if ( 0 == $current_user-&gt;ID ) {
      echo "Not logged in";
  } else {
      echo "Logged in";
  }
  </code></pre>