[wp-hackers] Exemplary code for web single sign-on plugin

Ryan McCue lists at rotorised.com
Wed Jul 31 00:58:00 UTC 2013

Otto wrote:
> You don't need to handle the cookie parts yourself. Using the
> "authenticate" filter correctly will do it for you.

>From my own experience, simply filtering authenticate is *not* enough.
The cookie check will happen before authenticate gets called in some
cases, and cause the user to be logged out.

I had to work around this:

It may be the case that I was doing this incorrectly, but a simple
filter on authenticate wasn't enough for me.
Ryan McCue

More information about the wp-hackers mailing list