The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Cookie Authentication In ASP/html???
Hello,
I hope someone can help me out with this. I have two sites... www.mysite.com running html and asp and forum.mysite.com running php. I would like to authenticate some of the pages on the main site with the forum. I know that when person logs in to the forum a cookie is created on the system. Here is the question, does anyone have ASP code that would check to see if the person is logged in, if so the script should allow displaying of the content and if not it should redirect the person to the login screen on forum.mysite.com. I don't think that this should be hard to write, but I don't have enough experience to acomplish this. I think this would be a great mod. Any help would be very much apreciated! Regards, JarekN |
#2
|
|||
|
|||
Anyone???
|
#3
|
||||
|
||||
Don't bump a thread until 24 hours later. Thank you.
|
#4
|
||||
|
||||
I don't know anything of ASP, but the cookies you'll need are
- bbuserid (the User's ID) - bbpassword = md5(concat(password, 'LicenseNo')) Where LicenseNo is your vB License Number and password the value from vB's user table which is actually md5(concat(md5(password), salt)). |
#5
|
|||
|
|||
In the past I have used...
setcookie("bbuserid","-1", time()-(3600 *24*7*365),"/","domain.com"); setcookie("bbpassword","-1", time()-(3600 *24*7*365),"/","domain.com"); In VB3 this dosent work, do I just change it to: setcookie("bbuserid","-1", time()-(3600 *24*7*365),"/","domain.com"); setcookie("bbpassword","-1", time()-(3600 *24*7*365),"/","domain.com",LICENCENO); |
#6
|
||||
|
||||
No ... at least I think this isn't correct.
Do you want to verify that the cookies are correct or do you want to set cookies? If you want to set cookies then it should be smth. like this (in PHP): PHP Code:
|
#7
|
|||
|
|||
Quote:
PHP Code:
This is what I have currently, The $row["player_password"] is already in MD5 format .... Do I need to MD5 phase the license key? |
#8
|
||||
|
||||
What exactly is $row["player_password"], the value of column password in vB user table?
Then you would have to call PHP Code:
|
#9
|
|||
|
|||
Quote:
.....so e.g. $row["player_password"] = "4hg5h345y345bhbh35345" |
#10
|
|||
|
|||
Thanks Kirby I have got it to work....
Regards, -Shazzy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|