开发者

Sharing session data between ASP.NET and PHP

开发者 https://www.devze.com 2023-02-22 11:15 出处:网络
I\'m building a custom .net web app with a wordpress frontpage and CMS. I\'m using session variables to check if the user is logged in to the web app.

I'm building a custom .net web app with a wordpress frontpage and CMS.

I'm using session variables to check if the user is logged in to the web app.

What I'd like to be able to do is display on wordpress whether or not the user is logged in to the webapp.

Is this possible and if so does anybody know how I would g开发者_开发知识库o about doing it?

Thanks, Andrew


Use a cookie and a database. The cookie contains some unique ID for that session, which you store in the database. Nothing specific to asp.net or php about cookies. Either app can obtain the key from the cookie, and look up the session info in the database.

0

精彩评论

暂无评论...
验证码 换一张
取 消