Sharing authentication between ASP.NET and WordPress

I am in a situation where I need auto-auth users between an ASP.NET website and WordPress. The idea is that you are logged in to the ASP.NET website, and if you are viewing WP pages that you are logged in automatically, and vice versa.

In ASP.NET, I can authorize users from a WP database, but all I can come up with is the question.

-How to enable this directional authentication scheme?

-Zubair

+3
source share
3 answers

, ASP.net( ) PHP- ( ). ASP.net , :

  • ASP.net
  • ASP.net cookie ( )
  • : ASP.net ( cookie)
  • PHP cookie ASP.net
  • PHP , ,

, ...

+5

, . WP cookies, cookie. , cookie WP cookie .

0

cookie PHP SetCookie(), cookie ASP.Net, cookies collection ( cookie ). Decode url.. ( ASP.Net url. (#-->%23 , @--->%40 etc..)

0

Source: https://habr.com/ru/post/1717630/


All Articles