Click here to Skip to main content
15,888,321 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: I need help with this simple form intergration. Pin
cjoki11-Jan-12 7:27
cjoki11-Jan-12 7:27 
Questionpartner site login Pin
AndyInUK9-Jan-12 5:11
AndyInUK9-Jan-12 5:11 
AnswerRe: partner site login Pin
User 17164929-Jan-12 7:42
professionalUser 17164929-Jan-12 7:42 
AnswerRe: partner site login Pin
cjoki9-Jan-12 9:37
cjoki9-Jan-12 9:37 
AnswerRe: partner site login Pin
Mohibur Rashid9-Jan-12 22:37
professionalMohibur Rashid9-Jan-12 22:37 
GeneralRe: partner site login Pin
AndyInUK9-Jan-12 23:37
AndyInUK9-Jan-12 23:37 
GeneralRe: partner site login Pin
User 17164929-Jan-12 23:55
professionalUser 17164929-Jan-12 23:55 
GeneralRe: partner site login Pin
cjoki10-Jan-12 11:32
cjoki10-Jan-12 11:32 
If you are gonna do it, then to answer your question...and this is just "off the cuff", I would most likey set up a seperate server to act as a central store of user logins. All sites must have a registration themselves to access the server and share data. I would then develop a series of scripts with a few interfaces to do...

1) share registered user logins, I would plan on the partner sites maintaining their own and current signup data store, but just have the data sent to a script on this server to process for a shared login. Be certain to scrub the hell out of this regardless of of transport (i.e. - never trust user input, no matter who the user is)
2) a script would be needed to dump the current user logins to the shared login db too.
3) a script to alter a status of a user, ie users baned on one site must not be able to login at yours and vise versa.
4) You will also need a message scheme to notify the target site that site abc has a user that wants login access. I would imagine that this should be managed with a direct server to server communication. This should be like setting a flag for the user. So when the user goes to the new site the login is already done and waiting for them.
5) since logins are handled via session, I imagine a custom session handler is in order as I doubt the default one in php would work. You can google for code to act as a base for your code, or at least for ideas for making your own design.

In a sense this reminds me of have a single login for sites with multiple subdomains and different servers. Here are a few bookmarks of mine that may help shed some light on the session issues related to this and may be an issue to consider as you go forward.

http://shiflett.org/articles/the-truth-about-sessions[^]

http://www.josephcrawford.com/php-articles/going-deep-inside-php-sessions/[^]

I will say again, I have a number of security issues with this. Your going to have a lot of trust in your partners to pull this off and I suspect if your group takes off in popularity the security issues will become even more profound.

You can of course implement a google, or facebook, or some other 3rd party login system. But I can not comment on the pros and cons of them. Maybe someone in the CP forums can?
Chris J
www.redash.org

AnswerRe: partner site login Pin
asoo16-Feb-12 12:25
asoo16-Feb-12 12:25 
QuestionGnome 3.2 Pin
loctrice6-Jan-12 18:56
professionalloctrice6-Jan-12 18:56 
AnswerRe: Gnome 3.2 Pin
Albert Holguin7-Jan-12 15:44
professionalAlbert Holguin7-Jan-12 15:44 
GeneralRe: Gnome 3.2 Pin
loctrice7-Jan-12 18:44
professionalloctrice7-Jan-12 18:44 
GeneralRe: Gnome 3.2 Pin
Albert Holguin7-Jan-12 19:27
professionalAlbert Holguin7-Jan-12 19:27 
GeneralRe: Gnome 3.2 Pin
loctrice9-Jan-12 3:49
professionalloctrice9-Jan-12 3:49 
GeneralRe: Gnome 3.2 Pin
Albert Holguin9-Jan-12 4:24
professionalAlbert Holguin9-Jan-12 4:24 
GeneralRe: Gnome 3.2 Pin
arjo12913-Jan-12 15:54
arjo12913-Jan-12 15:54 
AnswerRe: Gnome 3.2 Pin
loctrice15-Jan-12 16:22
professionalloctrice15-Jan-12 16:22 
GeneralRe: Gnome 3.2 Pin
Albert Holguin16-Jan-12 10:44
professionalAlbert Holguin16-Jan-12 10:44 
GeneralRe: Gnome 3.2 Pin
loctrice16-Jan-12 10:46
professionalloctrice16-Jan-12 10:46 
GeneralRe: Gnome 3.2 Pin
Albert Holguin16-Jan-12 10:50
professionalAlbert Holguin16-Jan-12 10:50 
GeneralRe: Gnome 3.2 Pin
loctrice16-Jan-12 12:33
professionalloctrice16-Jan-12 12:33 
GeneralRe: Gnome 3.2 Pin
loctrice16-Jan-12 14:46
professionalloctrice16-Jan-12 14:46 
GeneralRe: Gnome 3.2 Pin
Albert Holguin17-Jan-12 3:53
professionalAlbert Holguin17-Jan-12 3:53 
GeneralRe: Gnome 3.2 Pin
loctrice20-Jan-12 17:07
professionalloctrice20-Jan-12 17:07 
GeneralRe: Gnome 3.2 Pin
Albert Holguin21-Jan-12 10:42
professionalAlbert Holguin21-Jan-12 10:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.