波音游戏-波音娱乐城赌球打不开

Tips on Developing Web Applications for Web Farms

by Wilson Wong

?

The CityU central web servers (www.jvrhmfr.xyz and www6.cityu.edu.hk) are load-balanced web farms, which provide high availability services to the communities. In case any server instance of a web farm is unavailable (due to errors or maintenance), other server instances of the same web farm can still serve requests without service interruptions. 

Session Management
 
When a user visits our central web servers through a web browser, the central load-balancer (according to its internal algorithm) redirects the corresponding HTTP/HTTPS request to one of the server instances. For web applications that require continuous user interactions (for example, asking users to submit data via a web form), users may encounter broken sessions if related HTTP/HTTPS requests of a user session are redirected to other server instances. To  minimise issues of broken sessions, sticky persistent  has been enabled in the load-balancer which ensure all requests of the same user session are redirected to the same server instance. However, should the serving server becomes unavailable, the load-balancer will still redirect subsequent requests of the same user session to another server instance, hence users will still encounter issues of broken sessions.
 
To increase the persistency of .NET web applications, web developers are strongly recommended to make use of static machine keys for session state in web applications requiring user interactions. This would allow the session data of .NET web applications to be decrypted correctly among different server instances in the web farm. Therefore, even the serving server instance, A, becomes unavailable unexpectedly and the subsequent requests are redirected to another server instance, B, the server instance B could still decrypt the session data correctly with the static machine keys and avoid broken sessions.
 
To generate machine keys for your web application:
 
  • Locate and edit the web.config in the application root folder.
  • Add a <machineKey> section under <system.web>.
    <machineKey> section defines a pair of keys, validationKey and decryptionKey, which is used for encrypting, decrypting and validating session data. This pair of keys can be generated by the IIS Manager of your development PC as follows:
     
    • On your development PC, run the Internet Information Services Manager (inetMgr.exe)
    • Double-click “Machine Key” to open the Machine Key feature
      1. Select “AES” under “Decryption method:” and un-check “Automatically generate at runtime” and “Generate a unique key for each application” under “Validation key” and “Decryption key” respectively
      2. Click “Generate Keys” in the “Actions” panel on the right
      3. Copy  the generated “Validation key” and “Decryption key” into the  <machineKey> section under <system.web> in the web.config file as shown below:

                  (For security reasons, please generate different machine key pairs for different web applications.)

A Note for Using Classic ASP

Classic ASP stores session information in web servers, and therefore web applications developed by Classic ASP cannot share session information among server instances. If your web applications require storing data in a session, please consider building your web applications with ASP.NET instead.

 

References 

 

百家乐盈利分析路单| 百家乐视频麻将下载| 百家乐官网压分规律| 新澳博百家乐娱乐城| 大发888娱乐城在线| 真钱百家乐官网游戏大全| 尊龙百家乐官网娱乐| 圣安娜百家乐代理| 赌博堕天录漫画| 百家乐官网西园二手房| 百家乐娱乐分析软件v4.0| 线上百家乐官网攻略| 玩百家乐是否有技巧| 香港六合彩特码资料| 东莞百家乐官网的玩法技巧和规则| 广州百家乐筹码| 百家乐官网画面| 真钱百家乐| 噢门百家乐注码技巧| 百家乐代理合作| 百家乐规则技法| 云博娱乐城官网注册| 百家乐在线洗码| 百家乐官网十佳投庄闲法| 赌百家乐的玩法技巧和规则| 百家乐官网现金网平台排行| 百家乐的薇笑打法| 百家乐官网怎样玩的| 大发888官方 df888gfxzylc8| 百家乐官网稳赢投资法| 百家乐官网全透明牌靴| 骰子百家乐的玩法技巧和规则| 百家乐官网必胜方法如果你还想继续不看可能后悔一生 | 百家乐庄闲概率| 百家乐官网庄闲| 大发888亚洲游戏 网页| 百家乐网上娱乐城| 百家乐官网定位胆技巧| 百家乐官网的路怎样看| 博彩百家乐带连线走势图| 肯博百家乐官网的玩法技巧和规则|