asp.net|session|web| Problem | site
1, the problem description:
There are four M1,M2,M3,M4 modules in system S, each of which is a Web application. The session is not readable in another module after the session is set in one of the modules.
2, the problem reason:
A Web application is the equivalent of a site, and it is impossible to share sessions between applications and applications.
3, the solution:
1 include four Web applications in the same solution
(Note: Adjust the. webinfo file to make the solution work properly)
2 Create a new Web application main, which is contained in solution s and stored directly in the S directory (that is, corresponds to the virtual directory s).
3 Add references to four other applications in main application
4 Rebuild the main application, at which point the DLL for the M1, M2, M3, M4 four modules associated with the main module will be generated in the S\bin directory.
5) Adjust Web.config file
Delete all sections except the Web.config section in the M1, M2, M3, M4 four module appsetting. (You can also delete the web.config in four modules and keep only the Web.config files in the S directory.) )
The following actions affect the development environment
6) Delete Goble.acax
Delete the Goble.acax files in the M1, M2, M3, M4 four modules.
7 Delete M1, M2, M3, M4 four modules corresponding to the virtual directory
8) Merit Report