• Hey All,

    trying very hard to figure out the code to log a user in from outside of WP.

    Going through the code, it seems this is the line that sets the cookie,
    setcookie(AUTH_COOKIE, $cookie, $expire, COOKIEPATH, COOKIE_DOMAIN);

    I have been able to replicate the “AUTH_COOKIE” by following the code in pluggable.php and wp_settings.php. However I am having a hell of a time trying to replicate $cookie.

    Can any one offer any insights, the code seems ridiculously complicated. Can anyone cut it down to something a little more understandable?

    Cheers

    WP 2.5.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have an interest in doing the exact opposite, yet I suspect it would basicaly involve the same process. I want to use the WordPress login to give access to my users into directories outside of my WordPress installation. I’m guessing it’s all cookie based, so all that would be needed is an htaccess file in the directory outside of the Worpress installation.

    I’m assuming that logging in from that directory OR from within WordPress (as in your case) would be writing the same cookie, thus giving access to all directories using the same htaccess info.

    Unfortunately, I cannot confirm this, nor do I know how to go about doing this. Anyone?

    Surely someone here has done this before?

    I’m also very interested in this issue. If anyone has achieved this please let me know where I can find the pluggin/code?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Logging into WP from outside of WP’ is closed to new replies.