Logging into WP from outside of WP
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Logging into WP from outside of WP’ is closed to new replies.