2006-09-28, 08:19 PM
Pages: 1 2
2006-09-28, 08:21 PM
ok
thx for all ya help.. i deleted my cookies and it workec ..
Many thx again..
thx for all ya help.. i deleted my cookies and it workec ..
Many thx again..
2006-09-28, 08:21 PM
Browser cookies and cache.
2006-09-30, 12:31 PM
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?
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?
2006-09-30, 02:41 PM
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
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
Pages: 1 2