vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help with vB Logout process (https://vborg.vbsupport.ru/showthread.php?t=122915)

cshinteractive 08-03-2006 02:26 PM

Help with vB Logout process
 
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&amp;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&amp;logouthash=" . $vbulletin->userinfo['logouthash'];

should be...

$url = "http://bbs.myforums.org/forums/login.php?" . $session[sessionurl] . "do=logout&logouthash=" . $vbulletin->userinfo['logouthash'];


All times are GMT. The time now is 01:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01607 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete