I'm not an expert on ajax or anything, but I don't see anything wrong with your code. It works with a regular (not ajax) request. You have your script in the same directory as global.php, right?
Does an ajax request automatically include cookies? You'd need either the cookies or the security token for vb to recognize you as logged in. Maybe try using something like the FireFox addon "Tamper Data" to see what's being passed back and forth when the request is made.
|