Title: cs2009pc's Replies | WordPress.org

---

# cs2009pc

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

 *   [Profile](https://wordpress.org/support/users/cs2009pc/)
 *   [Topics Started](https://wordpress.org/support/users/cs2009pc/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cs2009pc/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cs2009pc/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cs2009pc/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cs2009pc/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cs2009pc/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: [is_user_logged_in doesn't work](https://wordpress.org/support/topic/is_user_logged_in-doesnt-work/)
 *  [cs2009pc](https://wordpress.org/support/users/cs2009pc/)
 * (@cs2009pc)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/is_user_logged_in-doesnt-work/#post-3238132)
 * > is_user_logged_in() may not work, if the script is outside of wp folder ?? …
   > yet, i am not sure about that.
 * Confirmed, I had the same problem and the dozen other threads on the internet
   did not have anyone mentioning this (or I didn’t read the manual right).
 * **Wrong Way**
    ./test.php ./wordpress/wp-blog-header.php
 * **Correct Way**
    ./wordpress/test.php ./wordpress/wp-blog-header.php

Viewing 1 replies (of 1 total)