• Hi,

    I have a problem with WordPress Social Login. Everything works fine with facebook login, but the moment you log out and try again, it gives me this error: https://ibb.co/ePw9xw

    If I clear my browser cache and cookies, then it works again until next log out. Any ideas? I tried getting ‘Logout clear cookies’ plugin and also tried to use this code from here: https://silvermapleweb.com/using-the-php-session-in-wordpress/ add_action(‘init’, ‘myStartSession’, 1);
    add_action(‘wp_logout’, ‘myEndSession’);
    add_action(‘wp_login’, ‘myEndSession’);

    function myStartSession() {
    if(!session_id()) {
    session_start();
    }
    }

    function myEndSession() {
    session_destroy ();
    }

    But that did not help, maybe because it is not wordpress social login specific.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Session or cookie not expiring?’ is closed to new replies.