Title: cwc's Replies | WordPress.org

---

# cwc

  [  ](https://wordpress.org/support/users/cwc/)

 *   [Profile](https://wordpress.org/support/users/cwc/)
 *   [Topics Started](https://wordpress.org/support/users/cwc/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cwc/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cwc/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cwc/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cwc/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cwc/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Authenticate WordPress login from External PHP script?](https://wordpress.org/support/topic/authenticate-wordpress-login-from-external-php-script/)
 *  [cwc](https://wordpress.org/support/users/cwc/)
 * (@cwc)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/authenticate-wordpress-login-from-external-php-script/#post-996215)
 * I did the following:
 * Add the following in your wp-config.php:
 *     ```
       define('COOKIE_DOMAIN', 'yourdomain.org');
       define('COOKIEPATH', '/');
       ```
   
 * You can make the path more specific (e.g. if your external script is in /myscript/
   and your WP installation is in /myscript/wordpress/, then you can use ‘/myscript/’
   as COOKIEPATH).
 * And then in my external script:
 *     ```
       require_once('wp-pos/wp-blog-header.php');
       if (! is_user_logged_in()) {
           ...
       }
       ```
   

Viewing 1 replies (of 1 total)