Reputation: 1241
I have two sites and want to be logged in on both of them when I log on one of them. What's the easiest way of doing it? I can't use any of the facebook auths etc.
Upvotes: 0
Views: 39
Reputation: 106
The least coding is going to be required if you try to do a browse based login into both sites. This can be easily accomplished using something called browser extensions (thats what this is called in chrome, safari and firefox). On IE, its called IE - addon.
Anyway, there are three possibilities. 1. If its ok with you to develop this on your own and maintain it and ask users to use only one browser then i would go with this - Create your own browser extension (This is of intermediate difficulty...so you can read up on this and do it yourself. https://developer.chrome.com/extensions/getstarted )
If you dont want to restrict your users with only one browser and let them use any browser, then it will be a little more difficult because you need to create an extension each for three browsers and an IE addon.
You can simply use a 3rd party browser extension and get going very quickly. There will be a little bit of prep work but you can get going in a day. E.g. you can use this - but only after creating an account with them. http://miniorange.com/tips/single-sign-on/how-to-enable-the-miniorange-single-sign-on-browser-extension/
Upvotes: 0
Reputation: 1125
What I think you are asking for is called Single Sign On and there are many available libraries to help you get started with them. You can check a lot of questions here on Stackoverflow for Single Sign On(SSO).
See this PHP library for a start https://gitorious.org/lightopenid
Upvotes: 1