• I was attempting to use

    is_user_logged_in()

    To check user status once signed in via Neon. The login seems to work, but when I log out, either via wp_logout or from within Neon, the WP still considers the user as logged_in until I do another “logout” in WP.

    Have you seen issues with “is_user_logged_in()” as the method to check if user is oauth logged in? If so is there a more reliable way to determine this and should all logouts be done on Neon (i.e. not through wp_logout), if so is there a direct URL to send users to to force a Neon logout (other than the dropdown in the profile in neon).

    Thanks!

    https://ww.wp.xz.cn/plugins/neoncrm-sign-in/

Viewing 1 replies (of 1 total)
  • Plugin Author colinpizarek

    (@colinpizarek)

    when I log out, either via wp_logout or from within Neon, the WP still considers the user as logged_in until I do another “logout” in WP.

    Since they are technically separate applications, this isn’t necessarily a problem. It really depends on your desired user experience.

    Have you seen issues with “is_user_logged_in()” as the method to check if user is oauth logged in?

    I didn’t hook in to that WP method, if that’s what you’re asking. I don’t believe that method has any bearing on Neon’s sign-in status.

    is there a more reliable way to determine this

    I haven’t built any hooks in the plugin that let you determine this easily. NeonCRM doesn’t have any API methods beyond its basic OAuth (which this plugin uses) to determine whether a constituent is logged in. If we wanted a better way to check if the user was still logged in to Neon, I’m not certain there’s an elegant way to do it.

    should all logouts be done on Neon

    You could try to tie the logouts together on the WP side, but we can’t really add a WP logout on the Neon page since you can’t modify Neon’s logout system.

    is there a direct URL to send users to to force a Neon logout (other than the dropdown in the profile in neon).

    You can send users here: https://www.z2systems.com/np/logout.do

Viewing 1 replies (of 1 total)

The topic ‘Logout’ is closed to new replies.