![]() |
Password Protection for Members Area
Hey,
I need some help with this thing.... There is the Members Area for my site and another (bonus) Members area of another site (which I want to link together), but they are on two different servers in two different locations. I have only ONE main username/password for the members area on the other server. Is there any way for my members to access the other members area using a simple link but without seeing the main username/password ?? (username:[email protected] in no good because first of all you can only access the members area the SECONED time you click the link :eek7 and seconed of all everyone can see the username/password.) Is there any JavaScript, PHP, CGI that can do something like that ?? I've been trying to get this to work for weeks now, I really need some help with this one. Thanx in advance :winkwink: |
Anyone :question
|
cookies
|
Good question, I would like to know too!!! :eyecrazy
|
Quote:
How do you do it with cookies? |
Build a backend php/mysql solution just have both sites access the same database. Not that hard to do.
|
LOL cookies is the one thing that specifically will NOT work, they are domain based.
|
Quote:
I have no control over the other serve though ... |
Just allow people to access it without a password...
Tgp's do it, so why can't you? |
Quote:
Its password protected since it is also used as a members area for another site |
The other members area is not mine, I'm just need to share it with the other webmaster.
|
Quote:
Another Idea I just came up with, didnt do it before but 90% sure its possible have php send that login/password via headers. Similar like post instead of get the users would not see it and once they closed their browsers they would not be able to log back in, actually this idea is pretty interesting, will go read up on it now :) |
Quote:
Anyone knows how to do this?? (Don't know PHP :( ) |
Ill im you on icq
|
Quote:
If you want authenticate/authorize across multiple domains, it needs to be done with a variable you have control over server side, such as cookies, you can do cross site authentication/authorize , although it is a real pain to set up and you need to have control of both servers and there are some compatibility issues. Basically, you change your authentication/authorization from looking at the username and password to looking at a cookie (which only gets set on two conditions, if the user enters a valid username/password on a login form, the user clicks on a link leading to the protected area that contains a time-sensitive "ticket" to be let in). For example, we use a ticket that consists of the members username, a timestamp, and an md5(username, timestamp, time-based-secret). Of course we have to be very careful that the system clocks on our servers don't fall out of sync. I don't know of any publically availiable tools to do this. We had to heavily modifiy Apache::AuthCookie to allow one login seamless access to multiple domains. |
Quote:
|
Thanx NetRodent :)
|
Quote:
|
How about something more simple? Encryption, just make a link like http://username:[email protected] and just encrypt the whole html page where that link is located so that no one could see the source code.
Or something like that ..... :question |
Spoke with a bunch of people and experimented myself, doesnt look possible you are not able to send auth variables into the browser.
|
Quote:
Thats what i ment under standard cookies it isnt possible to auth under multiple domain names so it wouldnt work. I tried seeing if there is anyway you can set auth in browser but thats impossible. |
Thanx anyways ...:winkwink:
|
Hey I tried, also asked some other pros none of them new anyway to do it with headers goodluck though. There may be some otherways, however you say that you have no access to the other webserver whatsoever, right?
|
Quote:
Ya man, I'm just sharing the members area on it, cant change anything :( |
All times are GMT -7. The time now is 01:02 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123