Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpBB logout

Tags:

php

phpbb3

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);
like image 440
ineedhelp Avatar asked Feb 26 '23 01:02

ineedhelp


1 Answers

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!';
?>
like image 148
Bakhtiyor Avatar answered Mar 11 '23 11:03

Bakhtiyor