Does Universal Login work? - Posted (4418 Views)
Senior Member
Astralis
Posts: 1218
1218
I'm trying to get the universal login mod to work. I tried it in the past and could never get it to work and thought I'd revisit it but I still cannot get it to work.
Has anyone ever had this mod operational? If so, what modifications did you make to get it to work?<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Support Moderator
Shaggy
Posts: 6780
6780
I've never used the mod itself because of the need for all the forum includes but I do have a custom universal login up & ruuning on both my sites. What problems are you encountering when you attempt to install it?
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Junior Member
Nertz
Posts: 341
341
It does work, I use it in two sites, but like shaggy said requires a bunch of forum includes including inc_header.asp which has login functionality and therefore shows up twice. I recall having to create a modifified inc_header.asp and a lot of customization on the pages that I used it. I could share some of that code when I get home tonight, just drop me an email if you want it.
cheers,
Nat<
Sadly, most Family Court Judges wrongfully reward opportunistic gold diggers
that use our children unjustly as "instruments" of power.

www.fathers-4-justice-canada.ca
Posted
Support Moderator
Shaggy
Posts: 6780
6780
One of the quickest ways to acheive this (as I have done with MeTV) is to create your own form and have it post to login.asp. No need for all the additional includes nor any custom ASP, just the basic HTML for the form.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Senior Member
Astralis
Posts: 1218
1218
Yes, got it after your advice. The inc_header.asp was very devilish. I eventually just manually parsed through every line to figure it out after reading your advice.
The next question is what is the variable of the numerical userid?
I also created a modified inc_header. Essentially, I added a few lines to inc_header_short and now it's working.
Thanks for the support!
Shaggy, that's interesting advice but do you think it would work for my purpose which is: I'm hiding content for members only. If I send them to the login page of the forum, it will redirect to the forum. But, I agree, if it was just a universal login to the forum, posting it to that page would be the better option.
All my members are complaining about the multiple logins, and I feel their pain. I hate registering for all the different sections.
<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
If you pass the URI of the page through you're logging in from, login.asp should redirect you to that page. Have a look at the hidden inputs of thr form in login.asp to see what they're called.
As for the MEMBER_ID, if you're calling chkUser in any of your non-forum files or their includes, it's assigned to a variable called MemberID. You'll need to set cookies to website for it to work. To check if the varibale has been assigned, try a resopnse.write on it while logged in. If it's not being assigned, have a look in inc_header.asp to see how the mlev variable is assigned using a call to chkUser. Oh, you'll also have to make sure that MemberID is declared outside the chkUser function.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Senior Member
Astralis
Posts: 1218
1218
Cool...it's being passed. This is stored in a cookie until the user is logged-off, right?<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Are you being redirected to the correct pages when logging in from outside the forum.
The username and encrypted password are stored in a cookie until such a time as the member logs off or the cookie expires. Again, have a look in inc_header.asp to see how Snitz reads the cookie (search for request.cookies).
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Junior Member
NiteOwl
Posts: 403
403
Shaggy - I have also had a lot of grief with the Universal Login, probably because my forum and the site I want toi use the login are on different servers etc.
I would be VERY interested to know how you achieved this, as I have a website which needs to be secured using the username and passwords from my forum. Any one with suggections please feel free to respond. I am ok with ASP and have done websites for years.
<
-=NiteOwl=-
Posted
Support Moderator
Shaggy
Posts: 6780
6780
NiteOwl, unfortunately, there is no way that I know of to share cookies between sites on different servers. If they are both using the same domain name then there may be some workaround. Let me know if they are and I'll look into it.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Senior Member
StephenD
Posts: 1044
1044
You can use a different method called Ping Sessions. A company I've had some exposure to do this very well. Not free but bluddy good product. Here's a link. http://www.pingidentity.com/index.html<
You Must enter a message