I'm using a custom php script to logout users from vBulletin.
Here is my script which is working as expected:

PHP Code:
//Init the vBulletin 
...