Thread Starter
yge
(@yge)
I came to understand that init does get called before the get_currentuserinfo() but the problem is that autmoatical login’s call to wp_setcookie() does have any effect on the first page load as acoordinate to http://www.php.net/manual/en/function.setcookie.php, one of common pitfalls of cookie is that “Cookies will not become visible until the next loading of a page that the cookie should be visible for.”. WP’s cookie based login check will never works for the first page load.