A
A
alexpogodin2011-01-31 13:36:34
User identification
alexpogodin, 2011-01-31 13:36:34

Single session for 2 or more sites

Good afternoon, dear ones!

There is a task to organize a single user profile on N (N> 1) sites. At the same time, I would like the user to log in once, on any of the sites of the system, and then on any site already recognized by the server. Which side to approach? openauth?

Tell me, how would you do it?

Answer the question

In order to leave comments, you need to log in

10 answer(s)
B
bdmalex, 2011-01-31
@bdmalex

OpenID?

G
gro, 2011-01-31
@gro

The question is how to transfer the cookie to another second level domain?
Then a little hint: if, for example, a js script from domain2.com is connected on the page with domain1.com, then the request to it will go with cookies from domain2.com.

P
Puma Thailand, 2011-01-31
@opium

loginza.ru?

X
xtender, 2011-01-31
@xtender

From the Irish they asked to transfer devpoint.ru/video/devpoint2/46631_Ilya_Kantor.html

J
Jazzist, 2011-01-31
@Jazzist

OpenID or just put a cookie.

V
Vitali Borovik, 2011-01-31
@WAYS

As option to use a DB for storage of sessions. Only need to be able to connect for both sites.

S
SwampRunner, 2011-01-31
@SwampRunner

Here, trying to figure it out stackoverflow.com/questions/4091677/php-authentication-with-multiple-domains-and-subdomains
Perhaps there is something better.

M
measme, 2011-01-31
@measme

clubs.ya.ru/4611686018427388208/replies.xml?item_no=1166 something
like that?

D
DorBer, 2011-01-31
@DorBer

Search Google for Single Sign On.

D
Dmitry Sidorov, 2011-01-31
@Doomsday_nxt

I did this for a long time: when writing cookies on the site1.ru site, I added a hidden iframe to the page with a page from the site2.ru site (a script that sets cookies depending on the GET parameters and returns an empty page) ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question