Objective
This article describes how to set the timeout value for the COOKIEINSERT persistence on a NetScaler appliance.
Background
When the Load Balancing feature of a NetScaler appliance is configured and the COOKIEINSERT persistence is configured, the timeout setting becomes a configurable option. In most scenarios, a timeout of 0 is preferred.
After COOKIEINSERT persistence is configured on a virtual server of the appliance, the appliance inserts an HTTP cookie in the client responses, which is then used to maintain a persistent session to the backend server. The appliance can send either an HTTP cookie version 0 or an HTTP cookie version 1. By default, the appliance sends an HTTP cookie version 0.
- If HTTP cookie version 0 is used, the NetScaler appliance inserts the absolute Coordinated Universal Time (GMT) of the cookie expiration (the expires attribute of the HTTP cookie), calculated as the sum of the current GMT time on a NetScaler appliance, and the timeout value.
- If an HTTP cookie version 1 is used, the NetScaler appliance inserts a relative expiration time (Max-Age attribute of the HTTP cookie). In this scenario, the client software calculates the actual expiration time.
When session cookies are used with a timeout value of 0, no expiry time is specified by the appliance regardless of the HTTP cookie version used. The session cookie expires when the Web browser is closed. Using session cookies enables COOKIEINSERT to function correctly even if the time on the NetScaler appliance and the servers are not synchronized. The expiry time is client software implementation dependent, and usually such cookies expire when the software is properly closed.
This persistence type does not use any system resources. Therefore, the appliance can accommodate an unlimited number of persistent clients.
Note: If the client computer is not allowed to store the HTTP cookie, the subsequent requests do not have the HTTP cookie. As a result, persistence is not used.
Instructions
Setting the Timeout Value for the COOKIEINSERT Persistence
On a NetScaler appliance, persistence is maintained for a configured period of time, depending on the persistence type. Use the –timeout <Minutes> option with the add lb vserver or set lb vserver commands on the command line interface of the appliance to configure the persistence timeout in minutes.
add lb vserver vs1 http 1.1.1.1 80 -persistencetype cookieINSERT -timeout 60
Orset lb vserver vs1 -timeout 200
The default value for the –timeout option is 2 minutes and the maximum value is 1440 minutes or 1 day.
Configuring Persistence Based on Cookies Using the GUI Utility
In the navigation pane, expand Load Balancing, and click Virtual Servers.-
In the details pane, select the virtual server for which persistence must be configured (for example, vserver-LB-1), and click Open.
-
In the Configure Virtual Server (Load Balancing) dialog box, on the Method and Persistence tab, in the Persistence list, select COOKIEINSERT.
-
In the Time-out (min) text box, type the time-out value (for example, 2).
-
Click OK.
-
Ensure that the virtual server for which persistence is configured correctly by selecting the virtual server and viewing the Details section at the bottom of the pane.
Citrix recommends that when configuring the COOKIEINSERT persistence as the Load Balancing method on the NetScaler appliance, you must use the session cookie with a timeout value of 0.
Note: If you have configured persistence on the appliance, the persistence settings override the server selection that Load Balancing methods made.
Additional Resources
For Configuration Utility Changes for NetScaler 10.1, refer Citrix eDocs -?? Configuration Utility Changes.
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.