cshinteractive
08-03-2006, 03:26 PM
mysite: http://www.mydomain.org/
myforums: http://bbs.mydomain.org/forums/
Integrating mysite with myforums (vBulletin 3.5.4), login process is working nicely thanks to the following post?
https://vborg.vbsupport.ru/showthread.php?t=108026
Once a visitor logs in to mysite they are seamlessly logged in to myforums. However, my logout process has a little problem, it doesn?t work.
Step 1. mysite logout script completes then redirects to myforum logout script
Step 2. myforum logout script:
<?php
chdir('c:/htdocs/bbs.myforums.org/forums');
require_once('c:/htdocs/bbs.myforums.org/forums/global.php');
$url = "http://bbs.myforums.org/forums/login.php?" . $session[sessionurl] . "do=logout&logouthash=" . $vbulletin->userinfo['logouthash'];
header("Location: $url");
?>
I get the following vB message:
An error occurred while attempting to log you out. Click here to log out.
Does anyone know why?
Thanks for your help in advance
ever mind, I found the issue
$url = "http://bbs.myforums.org/forums/login.php?" . $session[sessionurl] . "do=logout&logouthash=" . $vbulletin->userinfo['logouthash'];
should be...
$url = "http://bbs.myforums.org/forums/login.php?" . $session[sessionurl] . "do=logout&logouthash=" . $vbulletin->userinfo['logouthash'];
myforums: http://bbs.mydomain.org/forums/
Integrating mysite with myforums (vBulletin 3.5.4), login process is working nicely thanks to the following post?
https://vborg.vbsupport.ru/showthread.php?t=108026
Once a visitor logs in to mysite they are seamlessly logged in to myforums. However, my logout process has a little problem, it doesn?t work.
Step 1. mysite logout script completes then redirects to myforum logout script
Step 2. myforum logout script:
<?php
chdir('c:/htdocs/bbs.myforums.org/forums');
require_once('c:/htdocs/bbs.myforums.org/forums/global.php');
$url = "http://bbs.myforums.org/forums/login.php?" . $session[sessionurl] . "do=logout&logouthash=" . $vbulletin->userinfo['logouthash'];
header("Location: $url");
?>
I get the following vB message:
An error occurred while attempting to log you out. Click here to log out.
Does anyone know why?
Thanks for your help in advance
ever mind, I found the issue
$url = "http://bbs.myforums.org/forums/login.php?" . $session[sessionurl] . "do=logout&logouthash=" . $vbulletin->userinfo['logouthash'];
should be...
$url = "http://bbs.myforums.org/forums/login.php?" . $session[sessionurl] . "do=logout&logouthash=" . $vbulletin->userinfo['logouthash'];