cpg1.3+phpBB2 : can't logout and refresh same page cpg1.3+phpBB2 : can't logout and refresh same page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

cpg1.3+phpBB2 : can't logout and refresh same page

Started by JP, August 27, 2005, 12:37:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JP

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.

Nibbler

Post the part of the bridge file you actually changed. A link and test user account would also help.

JP

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.