[英]Share sessions between .aspx and .php on an IIS server
I know IIS server primarily hosts ASP.NET applications. 我知道IIS服务器主要托管ASP.NET应用程序。
However, PHP applications are also hostable on IIS. 但是,PHP应用程序也可以在IIS上托管。
I have developed applications in both PHP and ASP.NET. 我已经在PHP和ASP.NET中开发了应用程序。
I don't want to go through the stress of rewriting the php to ASP.NET 我不想承受将php重写为ASP.NET的压力
I want to have both PHP and ASP.NET in the same application. 我想在同一应用程序中同时包含PHP和ASP.NET。
I know I can transfer information using querystrings, but I also want to be a ble to share session data. 我知道我可以使用查询字符串传输信息,但我也希望能够共享会话数据。
How can i go about sharing session data in both .aspx and .php files. 我该如何在.aspx和.php文件中共享会话数据。
I have not practically tested this, but I think this is what you are looking for: How to Share Session State 我尚未进行实际测试,但我认为这是您要寻找的: 如何共享会话状态
Also refer to this question How to share sessions between PHP and ASP.net application? 还请参阅此问题。 如何在PHP和ASP.net应用程序之间共享会话?
The basic idea is that you store SESSION parameters in a database table and different apps check if those SESSION values exist. 基本思想是,您将SESSION参数存储在数据库表中,然后其他应用检查这些SESSION值是否存在。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.