There are two sites. Both on asp.net. Sites use the same database and are interrelated. I would like the user, being authorized on one site, to open a second site and also be authorized on the second site (the table of users in the database as well as the entire database is shared for them). There was a question how to make it? That is, how to make it clear to the second site that the same user is already authorized on the first one, and therefore must be logged in here too? After all, reading cookies from another site as I understand it is impossible and not safe.

  • I once asked this question but no one could answer, and then on many sites I asked this question, I received answers Zero - user33274
  • You can use SSO technology for asp.net, it has the ability to transfer cookies between domains - igosh

1 answer 1

as an option, you can use SSO

Identity Server 3 Standalone Implementation Part 1

And if it is easier then, when authorizing a user, to write cookies for both sites, into two domains.

  • Please try to publish detailed answers containing a specific example of the minimum solution, supplementing them with a link to the source. Answers –references (as well as comments) do not add knowledge to the Runet. - Nicolas Chabanovsky