MyBB v1.2.9 logout errors MyBB v1.2.9 logout errors
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

MyBB v1.2.9 logout errors

Started by Lopalong, November 13, 2007, 12:02:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lopalong

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&amp;uid={$mybb->user['uid']}">{$lang->welcome_logout}</a>)

But now includes a sid also:

<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}&amp;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.

Nibbler

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.

Lopalong

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. :)

Nibbler

Great, this fix will be incorporated in any future Coppermine releases.