如何vBulletin权威性与我的网站集成? [英] How to integrate vBulletin auth with my site?

查看:201
本文介绍了如何vBulletin权威性与我的网站集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要在我的网站的其它部分使用vBulletin身份验证系统。
请问VB的有什么API的是什么?

I need to use vBulletin auth system on the rest of my site. Does vB has any APIs for that?

林希望找到这样的事情:

Im expecting to find something like that:

if($vBulletin->isAuthenticated())
{
    // user authenticated
}

在VB中的情况下,不具备这样的API,有没有其他的方法来检查,如果用户进行身份验证?

In case of vB does not have such API, is there any other ways to check if user is authenticated?

推荐答案

基本上,以确保用户登录你需要寻找到饼干,从vBulletin DB匹配会话哈希值。

Basically, to ensure the user is logged in you need to look into cookies and match the session hash from vBulletin DB.

这链接对此事良好的信息:的http://www.saurdo.com/11/11/utilizing-the-vbulletin-database-in-your-main-site

This link has good information on that matter: http://www.saurdo.com/11/11/utilizing-the-vbulletin-database-in-your-main-site

更多信息可以在我回答这个类似的问题中找到:
<一href=\"http://stackoverflow.com/questions/12370005/django-vbulletin-single-sign-on/12810874#12810874\">Django /在 vBulletin单点登录

More information can be found in my answer to this similar question: Django / vBulletin single sign on

这篇关于如何vBulletin权威性与我的网站集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆