Why does ASP publish to Linux (mono) cause the session to be lost?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.