php - phpBB3 auto-login -


i've integrated phpbb3 forum existing website.

i've been able make registration process add user phpbb db well.

now i'm facing problem trying user auto-login forum when logs in website.

have here done that? can't find relevant on google posts seem talk 'phpbb external webpages' , how can use phpbb sessions on other webpages. i'm trying initiate login when member logs in website, , following tutorials found on google let users log in site when log in forum (which other way around).

thanks

<?php     define('in_phpbb', true);     $phpbb_root_path = '../phpbb3/'; //the path phpbb relative script     $phpex = substr(strrchr(__file__, '.'), 1);     include("../phpbb3/common.php"); ////the path phpbb relative script     // start session management     $user->session_begin();     $auth->acl($user->data);     $user->setup();      $username = request_var('username', 'john');     $password = request_var('password', '123');      if(isset($username) && isset($password))     {       $result=$auth->login($username, $password, true);       if ($result['status'] == login_success) {         echo "you're logged in";       } else {         echo $user->lang[$result['error_msg']];       }     } ?> 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -