MyBB Community Forums

Full Version: Can't log out or in on ie..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
What do ya mean by clear cookies... ya mean like clear my internet cookies or my sites cookies?
ok Smile
thx for all ya help.. i deleted my cookies and it workec Smile..
Many thx again..
Browser cookies and cache. Toungue
I have the same problem but is not possible to solve this with all the above solution
I search litle the code and i think that the problem is with version of php in the server.
See the attachment foto to see the message which receive when i try to logout

The invalid code are with bold red color
The first red is the line 1062 and the second red is line 1076
And please attension to bold black instruction which say that
// Versions of PHP prior to 5.2 do not support HttpOnly cookies and IE is buggy when specifying a blank domain so set the cookie manually

START CODE HERE
------------------------------------------------------------------
function my_setcookie($name, $value="", $expires="", $httponly=false)
{
global $mybb, $sent_header;
if($sent_header || headers_sent())
{
return false;
}

if(!$mybb->settings['cookiepath'])
{
$mybb->settings['cookiepath'] = "/";
}
if($expires == -1)
{
$expires = 0;
}
else if($expires == "" || $expires == null)
{
if($mybb->user['remember'] == "no")
{
$expires = 0;
}
else
{
$expires = time() + (60*60*24*365); // Make the cookie expire in a years time
}
}
else
{
$expires = time() + intval($expires);
}

$mybb->settings['cookiepath'] = str_replace(array("\n","\r"), "", $mybb->settings['cookiepath']);
$mybb->settings['cookiedomain'] = str_replace(array("\n","\r"), "", $mybb->settings['cookiedomain']);

// Versions of PHP prior to 5.2 do not support HttpOnly cookies and IE is buggy when specifying a blank domain so set the cookie manually
$cookie = "Set-Cookie: {$name}=".urlencode($value);
if($expires > 0)
{
$cookie .= "; expires=".gmdate('D, d-M-Y H:i:s \\G\\M\\T', $expires);
}
if(!empty($mybb->settings['cookiepath']))
{
$cookie .= "; path={$mybb->settings['cookiepath']}";
}
if(!empty($mybb->settings['cookiedomain']))
{
$cookie .= "; domain={$mybb->settings['cookiedomain']}";
}
if($httponly == true)
{
$cookie .= "; HttpOnly";
}
header($cookie, true);
}
-------------------------------------------------------
END CODE HERE

How is possible to solve this?
lol i fix that to by

going in board configuration i cokie domain i put my domanin.com it fixed i learnt this by reading the threads lol

my advise top people here befor u post read the threads u might find your answear dont be lazy like me thatnks any ways Smile
Pages: 1 2