百家乐怎么玩-澳门百家乐官网娱乐城网址_网上百家乐是不是真的_全讯网888 (中国)·官方网站

Tips on Developing Web Applications for Web Farms

by Wilson Wong

?

The CityU central web servers (www.ncm2.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安装包| 大集汇百家乐的玩法技巧和规则 | 世界顶级赌场酒店| 百家乐官网赌场信息| 百家乐代理合作| 百家乐官网注码技巧| 欢乐谷百家乐官网的玩法技巧和规则 | 大发888游戏场下载| 百家乐官网视频交流| 百家乐U盘下载| 六合彩公式| 百家乐官网园选蒙| 日博| 华人百家乐官网博彩论| 大发888怎么赢钱| 吉利百家乐官网的玩法技巧和规则 | 百家乐官网游戏网址| 百家乐投注限额| 百家乐官网游戏奥秘| 威尼斯人娱乐城送| 大上海百家乐官网娱乐城| 大发888真钱账户注册| 好用百家乐官网软件| 威尼斯人娱乐城注册送彩金 | 威尼斯人娱乐城送彩金| 百家乐官网心得打法| 威尼斯人娱乐场有什么玩| 戒掉百家乐官网的玩法技巧和规则 | 新锦江百家乐赌场娱乐网规则 | 百家乐必赢法软件| 六合彩百家乐官网有什么平码| 大发888 游戏下载| 百家乐视频中国象棋| 百家乐官网大小技巧| 香港六合彩开奖历史记录| 百家乐返水1.2不限| 棋牌娱乐网,| 一筒百家乐的玩法技巧和规则 | 百家乐保单机作弊| 博必发百家乐官网的玩法技巧和规则|