MyBB Community Forums

Full Version: Cookies Problem.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is my site.

http://ratemywww.com/forums/

I have sign in fine. But if I try to logout I get.

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.

I have to clear my cookies everytime I want to logout.

http://mods.mybboard.net/view.php?did=407

That is the theme I'm using. When I installed it it said not for 1.2.8.

Can I get a lower version or can I fix that for 1.2.8. so I don't need to clear cookies evertime.

Thanks.
If you edit the header_welcomeblock_member template and modify the logout link to contain:
&sid={$session->sid}

It will work correctly.
{$lang->welcome_back} (<a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a>{$admincplink} — <a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}">{$lang->welcome_logout}</a>)<br />

<a href="#" onclick="MyBB.popupWindow('misc.php?action=buddypopup', 'buddyList', 170, 300);">{$lang->welcome_open_buddy_list}</a> | <a href="search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="search.php?action=getdaily">{$lang->welcome_todaysposts}</a> | <a href="private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}

That is the code. So where do I add.

&sid={$session->sid}
<a href="{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}">{$lang->welcome_logout}</a>)<br />

I got it now thanks.
After this:
{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}
So it should look like:
{$mybb->settings['bburl']}/member.php?action=logout&uid={$mybb->user['uid']}&sid={$session->sid}