Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Logout Target Problem

edited May 2016 in Vanilla 2.0 - 2.8

Hi there! I managed to get everything running but the logout button. Technically he is working (i use the forum logout button to logout and the wordpress login to login.) But i cant manage him to use the hole window. So when i logout trough the button the window is loading only in the iframe, and i get a double header. I am using the forum embed in my site.

If I refresh the site with this double header the user is logged out and the header turns normal. So the only problem seems to be the right target^^

This is my config.php logout button url:
$Configuration['Garden']['Authenticator']['SignOutUrl'] = '/entry/signout/{Session_TransientKey}?Target=';

I found some workarounds in the forum, but they not worked for me. As fas as I understand I need to target the hole window so the logout url not getting loaded inside the embed iframe.

But the Target which is already in there confuses me. Can there be two targets? And yes, how could i target with _blank or _parent? I really tried to solve this for my own, but I am kinda stuck here:/

Thank you very much:D


  • Options
    hgtonighthgtonight ∞ · New Moderator

    The target in the URL is the redirect parameter. The other target referenced is an attribute of the anchor tag. You would add this via hook or JS. The actual markup would look something like:

    <a href="{Session_TransientKey}?Target=" target="_parent">Log Out</a>

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

Sign In or Register to comment.