WordPress.org

Ready to get started?Download WordPress

Forums

Simple Twitter Connect - Can't Log Out (9 posts)

  1. solidhex
    Member
    Posted 3 years ago #

    I am not able to log out using the STC plug-in. Clicking "log out" leaves me signed in to Twitter.

    The SFC log out is working just fine.

    Is there a work around for this?

  2. xiabolai
    Member
    Posted 3 years ago #

    Same thing here. Hope there's a fix.

  3. johnfakorede
    Member
    Posted 3 years ago #

    Has to do with "session_unset()" used in line 150 of stc-login.php and line 50 of stc-comments.php.

    Replacing with this should solve it:

    session_start();
    session_unset();
    session_destroy();
  4. marianolozano
    Member
    Posted 3 years ago #

    jonh, do you mean replace the single line
    session_unset();

    by the three lines?
    session_start();
    session_unset();
    session_destroy();

    on both files: stc-login.php and stc-comments.php, correct?

  5. johnfakorede
    Member
    Posted 3 years ago #

    @marianolozano: Yes, all three lines replace that single line. The problem has been noted on the PHP documentation.

    I'm only using stc-comments.php, but I'd assume the same applies to stc-login.php.

  6. marianolozano
    Member
    Posted 3 years ago #

    Thanks a lot john! :-)

  7. derekbeck
    Member
    Posted 3 years ago #

    awesome! thanks! derek

  8. billydec
    Member
    Posted 3 years ago #

    I've made the changes noted above but I still am not able to logout.

    any suggestions?

    http://tune-in-tokyo.com

  9. zeaks
    Member
    Posted 3 years ago #

    Thanks, this worked for me. If using the comments widget, the unset line is at line 50 in stc-comments.php

Topic Closed

This topic has been closed to new replies.

About this Topic