Hi all
First 'im sorry but i've a limited english ::)
So ... i've install the cpg 1.3 yesterday , with my phpBB 2. There are on the same mysql database. I've bridge cpg.
My problem : when i'm clicking on "logout" (in cpg or phpbb it's the same problem) , i stay on the same page and i' can't disconnect.
Here my files :
cpg_redir.php
<?php
$cpg_host=$_SERVER['HTTP_HOST'];
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>
a part of my phpbb.inc
// HTML code for login/logout redirection
DEFINE("REDIR1",'<HTML><BODY onLoad="document.redir.submit();"><FORM NAME="redir" METHOD="post" ACTION="');
DEFINE("REDIR2",'"><INPUT TYPE="hidden" NAME="redirect" VALUE="cpg_redir.php"></FORM></BODY></HTML>');
DEFINE('LOGIN_REDIR', 'login.php?redirect=cpg_redir.php');
DEFINE('LOGOUT_FLAG', '&logout=true');
// Login
function udb_login_page()
{
udb_redirect(LOGIN_REDIR);
}
// Logout
function udb_logout_page()
{
if (PHPBB_LOGOUT_GET) {
udb_redirect(LOGIN_REDIR.LOGOUT_FLAG);
} else {
echo(REDIR1.PHPBB_WEB_PATH.LOGIN_REDIR.LOGOUT_FLAG.REDIR2);
exit();
}
}
Thanks to help me if you have an idea.
Regards.
Post the part of the bridge file you actually changed. A link and test user account would also help.
Hi Nibbler, i've found !!
It was a cookies problem, i've deleted all cookies on my pc and re login, the logout works correctly.
But i don't know why ... anyway ... it's ok now.
Thanks for your help and see you.