Hi,
I am currently working on integrating a login on my website and I have it using the phpbb database to get the user data. However what I need to do is use the phpbb session to detect whether the person is logged in. What I need to know is how to build the phpbb session file so that the forum detects the person has logged in and if someone logs in on the forums they are also logged in at the website. Any help will be appreciated. Here is the start of my code:
<?php require_once('Connections/forum.php'); ?>
<?php
$username=$_POST['username'];
$user_password=md5($_POST['password']);
mysql_select_db($database_database, $database);
$query_Login = "SELECT username,user_password FROM phpbb_users WHERE username='$username' and user_password='$user_password'";
$Login = mysql_query($query_Login, $database) or die(mysql_error());
$row_Login = mysql_fetch_assoc($Login);
$totalRows_Login = mysql_num_rows($Login);
if($totalRows_Login >=1) {
header("Location: index.php");
}
?>