简体   繁体   中英

ASP.NET Session Lost When Use Web Garden Settings

I have an ASP.NET MVC (.NETFramework 4.5) application, when I hosted (IIS-7.5), I set max Worker process to 5, And Set Session State to StateServer And Set a static machinekey , after all my session is null,

Why?

Is there any settings that I lost?

any suggestion?

The problem that I found is so wired, when I use web-garden or web-farm the object that stored in session must be serializable but in regular we don't need this.

So I just add a serializable attribute above the object that stored in session and all things is OK!.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM