PDA

View Full Version : logging out remotely


swellinfo
06-10-2013, 05:06 PM
Hi,

I am integrating my site login with the VB login.
I am trying to figure out how I an kill the VB session externally?
Can anyone offer any advice on this?

Killing the cookies is easy, but the php session still exists until the user exits.
Can I just load /includes/functions_login.php and call process_logout()?

--------------- Added 1370888969 at 1370888969 ---------------

Looks like I figured this out, so I'm just posting in case anyone else is curious:

chdir('forum');
define('VB_AREA', 'Forum');
global $vbulletin;
include_once('includes/init.php');
include_once('includes/functions_login.php');
process_logout();