Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Technical Support    Forum Support  ›  mutliple boards single authentication
Users Browsing Forum
No Members and 2 Guests

mutliple boards single authentication  This thread currently has 12,648 views. Print
1 Pages 1 Recommend Thread
kidmuto
June 20, 2008, 11:01am Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
Hi,
I have two E-Blah boards that point to the same member directory.  They are completely separate websites (with different domain names) but the idea is that members of one can log into the other.

This works, but when you link from one board to the other it still requires you to log in again.  I'd like to make this seamless so that if you are already logged into one board, the other automatically recognizes you.  

I am not using sessions (although I could) and I already tried setting the cookie prefix to the same name on both boards.

Any ideas?

Thanks!
Logged Offline
Private Message Private message
Martin
June 21, 2008, 4:15pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
This is probably possible, it would depend on the link to your Members and Prefs folder though.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 1 - 10
kidmuto
June 23, 2008, 3:31pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
Hey Martin,
What do you mean?  Both boards have the same members directory (in Settings.pl, they both point to the same directory) but different prefs directories.

Keep in mind that you can already log into both boards with the same username and password.  What I want to do is make it so that if you are logged into one and then point your browser to the other, you are automatically logged in (rather than typing your username and password in again for the second board).

Thanks!
Logged Offline
Private Message Private message Reply: 2 - 10
Martin
June 24, 2008, 10:09am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
Again, this should work if you are Cookies only, if you have sessions running then it won't work as sessions are stored in the Prefs folder.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 3 - 10
kidmuto
June 25, 2008, 10:50am Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
no such luck. i am not using sessions on either site - only cookies.  i think the problem has to do with the fact that a browser will only send cookies to example1.com if they were originally set by example1.com.  example1.com can't retrieve a cookie set by example2.com (think about it, that would be a huge security breach).  sessions ID's are also stored in cookies so this would have the same problem.  

if someone has come up with a workaround to this, even just conceptually, that would be great
Logged Offline
Private Message Private message Reply: 4 - 10
Martin
June 25, 2008, 2:03pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.13
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 26 minutes
Location: UK
Age: 50
You could host both forums on the same site, I have a friend who has three websites catering different subjects but he hosts all 3 forums on the one site.



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 5 - 10
kidmuto
June 25, 2008, 3:26pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
yea that would work, but unfortunately not an option in this case - it would require alot of work and each board has its own core group that like to own thier separate hostnames.  My example was simplistic, there are actually quite a few boards involved...
Logged Offline
Private Message Private message Reply: 6 - 10
kidmuto
November 20, 2008, 5:53pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
hi - i know this is an old thread but i never got it working so i'd like to revive it.  basically i have 4 websites with separate URLS that all have eblah.  i'd like to get it to work so that if you have logged in to one of them, you are automatically logged into the other.  i am using cookies only (no session ID) and the cookie prefix is the same.  unfortunately i think cookies are tied to the URL.

does anyone have any ideas?
thanks!
Logged Offline
Private Message Private message Reply: 7 - 10
iCONICA
November 20, 2008, 6:48pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 764
Gender: Male
Posts Per Day: 2.38
Reputation: 97.14%
Reputation Score: +34 / -1
Time Online: 11 days 3 hours 19 minutes
Location: Manchester UK
Me, hephnet and battlemage had a discussion about cookies for multiple domains and we concluded it's not safe, wise or eve possible in some cases. search for that thread. can't remember it's name.  



The Best Free Online Technical Support Community! (Click Here)

i-CONICA's Reputation: Increase

Visit The Best Free Technical Support Community In The World!
Logged Offline
Site Site Private Message Private message Windows Live Messenger WLM Reply: 8 - 10
kidmuto
November 20, 2008, 7:20pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 96
Gender: Male
Posts Per Day: 0.07
Reputation: 100.00%
Reputation Score: +2 / -0
Time Online: 13 hours 17 minutes
thanks - i will search for it.  i didnt think its possible (at least not wihtout some serious hackups) because of the way browsers look for cookies.  my best bet now is to combine them into an umbrella url with subdirectories for each one - that should work and still keep the boards completely separate.  just not sure how the users will take to it
Logged Offline
Private Message Private message Reply: 9 - 10
BattleMage
November 21, 2008, 3:34am Report to Moderator Report to Moderator
E-Blah Member
Posts: 77
Gender: Male
Posts Per Day: 0.04
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 1 days 40 minutes
Location: Ammerbuch, Germany
Age: 27
It's possible if you use the same domain as you can use one cookie for multiple subdomains.
Logged Offline
Private Message Private message Reply: 10 - 10
1 Pages 1 Recommend Thread
Print

E-Blah Community    Technical Support    Forum Support  ›  mutliple boards single authentication