开发者

What is the best approach of disconnected work after uploading new version of web Site?

开发者 https://www.devze.com 2023-04-10 21:53 出处:网络
We have in the company a asp.net website which has a pages that depends on a session. Every week we upload 2-3 times - a new version of the site.

We have in the company a asp.net website which has a pages that depends on a session.

Every week we upload 2-3 times - a new version of the site.

the problem is that the site offers services which depends on Sess开发者_如何学Goion. and when we upload - the session is gone. ( as it should).

one of the idea was to notify that the site will be down for a while in a special page. but even then - someone could be in a middle of a session and then see a Maintenance page.( a situation that some one has started filling the form , and in the meanwhile - we downloaded the site with the Maintenance page).

The other idea was to use Sql server session or state server.

the Question is : if we save his session(in sql) and shutdown the server - - the user dont see it , and when he is about to press the Save Button - will it work ?

I know theres Un-persistant cookie which saves the session id. so after the server is up again - and the user still see the page - and he press save - will it work ?


With SQL Server session you should technically be able to shut down the server, start it back up, and the user hits Save as though nothing happened (once it's back up again) - except for an obvious delay as everything comes back up and loads into memory for the first time. However, you may have a problem with ViewState errors if you have moved around the controls on the form between posts.

Ideally you have your website mirrored on a server farm with at least two servers, and you do rolling updates. Don't ask me how to do this tho :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号