[wp-hackers] problem with wp_signon

Nikola Nikolov nikolov.tmw at gmail.com
Sun May 4 08:31:47 UTC 2014


I think the cookies are not set on the first load - so you'd have to
redirect them in order for WordPress to detect that the user is actually
logged-in.

I could be wrong though, so if someone else has a clue...


On Sun, May 4, 2014 at 11:18 AM, Guus (IFS) <
guus at inspiration-for-success.com> wrote:

> Hi,
>
> I am having a problem signing a user in with wp_signon. When calling it
> (before the headers have been sent) the first time the user appears not to
> be logged in when using is_user_logged_in. When going to another page the
> user is signed in however. Only the first page opened tells the users is
> signed in, which apparently somehow is the case.
>
> Please advise,
>
> Guus
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list