简体   繁体   中英

Custom SessionState Provider and Web Farm

I am working to expand our web application to work on a web farm. I have written a custom session state provider. All the pieces seem to work by themselves but together the site will eventually stop responding until I clear the session cookie and then it will suddenly all work again.

When I use the custom provider with a single web server everything works great.

When I use the farm with both web servers pointed to the same SessionStateService I am able to bounce between them and stay logged in, etc as expected.

Once I try to use the farm against with the custom provider it will work as expected for 3-5 page requests but eventually it just stops responding and the browser is stuck Waiting for page...

I have set the machine keys on both machines (confirmed by the session state service working) Althought this is only valid for view state I believe.

So is there some other settings or something out there that I am missing? That is my only guess at this point other than an issue with locking that is some how only presenting itself when on the farm. Two days of fighting with this has left me with no answers...

在对GetItemExclusive中的锁定进行了一些调整之后,它现在似乎正常工作。

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