Support » Plugin: WP Session Manager » ERR_TOO_MANY_REDIRECTS when trying to log into wp_admin

  • Any attempt to use an auth service plugin (Authorizer for example, I have tried others with similar results) for CAS or ldap is causing logins to fail due to too many redirects.

    I ran into this issue with the Participants Database plugin, and tracked it down to their inclusion of your WP Session Manager plugin. For testing purposes, I deactivated their plugin and installed yours, and am getting the same result. Can you suggest any way to resolve this issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eric Mann


    The session plugin doesn’t do any sort of redirect on its own, so I’m confused as to how you were able to identify WP Session Manager as the culprit here. Not saying it’s not, but I don’t see how it could be.

    As this is literally a problem I’ve never seen before anywhere else, I can’t even attempt to reproduce without further information.

    – How did you track things down to the inclusion of WP Session Manager?
    – What other plugins are installed?

    Thread Starter sornman


    I tracked itdown by commenting out the following line in Participants Database:
    require_once self::$plugin_path . ‘/vendor/wp-session-manager/wp-session-manager.php’;

    This caused the redirect issue to go away.

    To verify, I deactivated Participants Database and installed/activated WP Session Manager. Redirect issue came back. I deactivate Session Manager, issue goes away again.

    This is with a clean WP install with only Authorizer and WP Session Manager active. I have used other CAS plugins previously, and all of them had the same redirect issue.

    Plugin Author Eric Mann


    After looking at the code for the Authorizer plugin, I can tell you that it’s not compatible with WP Session Manager or anything that uses it. Authorizer attempts to use sessions for user state management while negotiating login, and the independent invocation of <tt>session_start()</tt> will conflict with WP Session Manager.

    Said another way, only _one_ codebase can register the session handler for the system. The first to do so, wins.

    Both WP Session Manager and Authorizer attempt to integrate deeply with PHP’s session system and are colliding with each other here. Unfortunately, I can’t think of a quick workaround to resolve the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ERR_TOO_MANY_REDIRECTS when trying to log into wp_admin’ is closed to new replies.