Universal Login using PHP

20 pts.
Tags:
PHP
Universal login
Web development
Hi to all, I am new here Please help.. How to to create universal login if i log in on one website another one site its partner if another site open automatically log on for example if we log on google mail if we go to orkut automatically log on how can i implement this logic by ramji k k

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hello Ramji,
you may use PEAR and it’s API capabilities, you can have more info here.
Bye

Hello Alessandro.panzetta ,

Thanks for your answer

but PEAR is something complex that I can’t understand

Do you know how to get a cookie value from one site to another site?

For example

We have test1.com and test2.com

If some user login in test1.com

In that site login user id was stored in cookie

At the same time I open the test2.com in that time

Alert message display your login in test1.com

Current value I want to retrieve

Do you have any PHP code to retrieve the value from other site when currently login

Bye

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Labnuke99
    Cross-site cookie use is a security issue. You want to likely secure the cookie credentials with some type of encryption or hashing to ensure the identity being offered by the cookie is the actual user's identity. It would be easy to steal someone's identity if the cookie is easily read and used.
    32,960 pointsBadges:
    report
  • Ysrd
    IF the two sites are on the same domain (www.test.com and yyy.test.com) you can usae a domain cookie. As stated by the previous poster it would be a security risk unless you are on an intranet only. You are better off using some other type of single sign on like LDAP or SAML. I suggest looking at the wikipedia article on single sign on, also there are good articles at the php home site and also at searchsecurity.techtarget.com
    430 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following