I'm just doing sothing with integrating phpBB's login with my site,
but to have to logout link, I need a session ID (SID)
So I thought I'll use append_sid()
like this
Code: Select all
$logout = append_sid("login.php?logout=true");
echo '<a href="forums/' . $logout . '">Logout</a>
Am I doing something wrong?
Chris
P.S.
I have done all this stuff
Code: Select all
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//