The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Hello KirbyDE,
I hope you can help me out, So how would I go about checking to see if the user is logged in and if he's not how can I redirect him to the login page. My main site is at www.domain.com (IIS running HTML and ASP) and vBulleting is at forum.domain.com (PHP). Your help would be very much apreciated. Quote:
|
#12
|
||||
|
||||
You would have to check if both cookies (bbuserid and bbpassword) exist and if they are valid.
To do so you must query the vB user table for the given userid and check if md5(concat(password, 'LicenseNo')) is the same as the value of cookie bbpassword. If not perform a header-redirect to login.php. Unfortunately I can't give you code-examples as I don't know anything about ASP. |
#13
|
|||
|
|||
Hello,
I know I can check for cookies in ASP, but there is no way for me to check if the password cookie is = to the password in the db. Is there anything else I can do? or can I just asume that the if both cookies (user and password) exist that the user is valid? |
#14
|
||||
|
||||
Quote:
> Is there anything else I can do? No. You must query the database. |
#15
|
|||
|
|||
The password is encrypted, how can I go about checking it to see if it is valid... would the password in the DB be the same as in the cookie and if so I guess I could just see if the dbpswd=cookiepswd .
Has anyone else done anything within ASP? |
#16
|
||||
|
||||
As I already posted earlier, cookie bbpassword ist md5(concat(password, 'LicenseNo')) where LicenseNo is your vB license number and password is the value form the database.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|