Answer the question
In order to leave comments, you need to log in
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
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.
From the Irish they asked to transfer devpoint.ru/video/devpoint2/46631_Ilya_Kantor.html
As option to use a DB for storage of sessions. Only need to be able to connect for both sites.
Here, trying to figure it out stackoverflow.com/questions/4091677/php-authentication-with-multiple-domains-and-subdomains
Perhaps there is something better.
clubs.ya.ru/4611686018427388208/replies.xml?item_no=1166 something
like that?
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 questionAsk a Question
731 491 924 answers to any question