11.2.4.10. How to maintain a session by Cookie Insert¶
Operation Confirmed Version: | |
---|---|
Citrix Netscaler VPX Version11.0 Build67.12 Standard Edition |
As a method to maintain a session, Cookie Insert will be introduced here.
At EC site or the like, communications repeated with a client (user) have to be maintained. By maintaining the session set up initially, this function can keep the communication with the same server, and prevent contradiction generation in the communication (such as in screen transition).
Presumed case for sample setting
Assume that we want to set up a session maintenance to the Virtual Web Server for the access from the client.
Configuration diagram
From the [ Configuration ] menu, move to [ Traffic Management ] → [ Load Balancing ] → [ Virtual Servers ]. After the Virtual Servers screen is displayed, select the target [ Server Name ] and click [ Edit ].
On the Virtual Server Details screen, click [ Persistence ] from [ Advanced Settings ] in the right side of the screen.
Click the [ Persistence ] menu.
Select [ COOKIEINSERT ].
Input as follows on the Persistence screen.
Setting Items |
Setting value |
Persistence | COOKIEINSERT |
Time-out | 10 |
Cookie name | testcookie(任意の名前) |
Set the parameters and click [ OK ].
Check that [ Persistence COOKIEINSERT ] is displayed in [ Persistence ], and click [ Done ].
On the Virtual Servers screen, check that the target Server [ Persistence ] is set to [ COOKIEINSERT ], and that [ State ] and [ Effective State ] are [ Up ].
Operation check result
Access web pages twice and check if the accesses are made to the same Virtual Web Server 1.
Two (2) times of access records to the Virtual Web Server 1 are confirmed.
Communication record was not confirmed in the Virtual Web Server 2 log.
Next, with a Virtual PC on the client (user) side, check by using packet capture if cookie is communicated.
From the result of packet capture, a set testcookie was confirmed in each communication that accessed web pages twice.