我如何与asp.net和php共享会话

问题描述:

我们有一个ASP.NET项目,我们计划将其转换为PHP。由于这个项目很安静,我们计划逐页迁移。我的问题是我可以在ASP.NET应用程序中包含php页面并在IIS中包含主机吗?我也可以通过ASP.net页面启动PHP访问会话吗?



我尝试了什么:



我试图创建一个示例asp.net项目,其中包含一个PHP页面。不适合我。我是否需要在IIS中为PHP添加任何扩展名?

We have an ASP.NET Project which we are planning to convert to PHP. As this project is quiet big one, we are planning to migrate page by page. My questions are can I include php page in ASP.NET application and host in IIS? Also can I Access Session in PHP which is initiated by ASP.net page?

What I have tried:

I tried to create a sample asp.net project which I included a PHP page. Not worked for me. Should I need to Add any extension for PHP in IIS?

Sinisa是对的,您无法访问会话。您需要创建一个数据库表来存储您要共享的任何信息。您也可以通过查询字符串传递内容。
Sinisa is right, you cannot access session. You'll need to create a database table that stores whatever information you want to share. You can pass things through querystring also.