1. Problem description:
There are four modules M1, M2, M3, and M4 in system S. Each module is a web application. After the Session is set in one module, it cannot be read in other modules.
2. Cause of the problem:
A WEB application is equivalent to a site, and it is impossible to share Sessions between applications.
3. Solution:
1) Include four web applications in the same solution
(Note: Adjust the .webinfo file so that the solution can run normally)
2) Create a new web application Main, which is included in solution S , and stored directly in the S directory (that is, corresponding to the virtual directory S).
3) Add references to the other four applications in the Main application
. 4) Regenerate the Main application. At this time, the dlls of the four modules M1, M2, M3, and M4 related to the Main module will be generated in the Sbin directory.
5) Adjust the web.config file
to delete all sections in the web.config of the four modules M1, M2, M3, and M4 except the AppSetting section. (You can also delete the web.config in the four modules and keep only the web.config file in the S directory.)
The following operations will affect the development environment
6) Delete goble.acax
Delete the four modules M1, M2, M3, and M4 goble.acax file.
7) Delete the virtual directories corresponding to the four modules M1, M2, M3, and M4
8) You’re done