Advanced search  

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]

Pages: [1]   Go Down

Author Topic: MyBB v1.2.9 logout errors  (Read 4720 times)

0 Members and 1 Guest are viewing this topic.

Lopalong

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
MyBB v1.2.9 logout errors
« on: November 13, 2007, 12:02:17 am »

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.
« Last Edit: November 15, 2007, 08:51:48 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: MyBB v1.2.9 logout errors
« Reply #1 on: November 15, 2007, 12:13:47 pm »

Change the logout function from

Code: [Select]
// Logout
function logout_page()
{
$this->redirect('/member.php?action=logout&uid=' . USER_ID);
}

to

Code: [Select]
// Logout
function logout_page()
{
$this->redirect('/member.php?action=logout&uid=' . USER_ID . '&sid=' . $this->sid);
}

Please report back.
Logged

Lopalong

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: MyBB v1.2.9 logout errors
« Reply #2 on: November 15, 2007, 08:35:56 pm »

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

Nibbler

  • Guest
Re: MyBB v1.2.9 logout errors
« Reply #3 on: November 15, 2007, 08:52:46 pm »

Great, this fix will be incorporated in any future Coppermine releases.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.