Problems in ASP.NET Processes a Site Different Web Application Sharing Session

xiaoxiao2021-03-06  37

1. Problem Description:

There are four modules of M1, M2, M3, M4 in the system s, each of which is a web application. One of the modules is set after session in other modules.

2. Problem:

A web application is equally a site, and it is impossible to share session between applications and applications.

3, solution:

1) Contain four web applications in the same solution

(Note: Adjusting .Webinfo file makes the solution function properly)

2) Creating a new web application main, the web application is included in the solution S and stored directly in the S directory (ie correspond to the virtual directory S).

3) Adding other four applications in Main applications

4) Regenerate the main application, at this time, the DLL of the four modules of M1, M2, M3, and M4 associated with the main module will be generated in the S / BIN directory.

5) Adjust the web.config file

Delete the four modules of M1, M2, M3, and M4 Web.config except all the festivals other than the AppSetting section. (You can also delete web.config in the four modules, only the web.config file under the S directory.)

The following operations will affect the development environment

6) Delete GOBLE.ACAX

Delete the goble.acax file in the four modules of M1, M2, M3, M4.

7) Delete the virtual directory corresponding to the four modules of M1, M2, M3, M4

8) Master

转载请注明原文地址:https://www.9cbs.com/read-62419.html

New Post(0)