At work, I need to publish my ASP. VS2010 to Linux, and ASP. The Framework 4.0.0,linux is Mono 3.10.0+jexus 5.6.3;
When I publish to IIS, everything is OK;
However, when I publish to Linux, there is a problem, you can log into the system, when you re-action on other pages, and then re-jump to the login page, this is why?
I added permissions on each page, if the session does not exist, it means that no login, it will automatically jump to the login page, think of the session may be missing.
In ASP. NET, if you do not manually set the sessionstate node in Web. config, the default is InProc, which is called in-process session,session is present
Web server process, I did not set the sessionstate node, the default is InProc, looked at the Jexus config, found httpd.processes=8, the problem is here;
As long as the change to Httpd.processes=1 is normal, if you feel that the session is not enough, easy to crash, you can add the sessionstate node in Web. config,
Set mode to StateServer or SQL Server, specifically how to set not to say, the Internet has very detailed information.
Why does ASP publish to Linux (mono) cause the session to be lost?