I am able to login with an integrated login system for my site and phpBB3. I am unable to
logout... I tried destroying the session, or used ->logout();
I log in as:
    $phpBBusername = $_SESSION['username'];
    $phpBBpassword = $_SESSION['pswd'];
    $result = $auth->login($phpBBusername, $phpBBpassword);
                Maybe you've already found the answer but anyway:
<?php
   define('IN_PHPBB', true);
   $phpbb_root_path = '../phpBB3/';
   $phpEx = substr(strrchr(__FILE__, '.'), 1);
   include("../phpBB3/common.php");
   $user->session_kill();
   echo 'Logged out successfully!';
?>
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With