I have the following issue when trying to logout from coppermine and MyBB 1.2.9:
[ Your user ID could not be verified to log you out. This may have been because a malicious Javascript was attempting to log you out automatically. If you intended to logout, please click the Logout button at the top menu. ]
Coppermine install: http://forum-styles.com/coppermine/
Forum install: http://forum-styles.com/mybb-demos
Coppermine version: cpg1414
Forum version: MyBB app v1.2.9
Test user account: test / qwerty
BridgeManager settings:
Forum URL: http://forum-styles.com/mybb-demos/index.php
Relative path to your BBS's config file: ../inc/
Use post-based groups?: 0
Cookie name/preifx (if applicable)
MyBB previous versions used this log-out string:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}">{$lang->welcome_logout}</a>)
But now includes a sid also:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}">{$lang->welcome_logout}</a>)
Q: What changes need to be made to the mybb.inc.php file to accommodate the extra variable. ?
Thanks, Lop.
Change the logout function from
// Logout
function logout_page()
{
$this->redirect('/member.php?action=logout&uid=' . USER_ID);
}
to
// Logout
function logout_page()
{
$this->redirect('/member.php?action=logout&uid=' . USER_ID . '&sid=' . $this->sid);
}
Please report back.
Thank you Nibbler, I tested it with both logging in and out of MyBB and Coppermine - And you've done it again.
It works fine. :)
Great, this fix will be incorporated in any future Coppermine releases.