This script can be used to enable cookie persistence on the ADX. When the ADX receives a new request, it will select a server with the server ID specified by the cookie value and forward the request. The ADX will insert a custom cookie with the server ID value in the response sent to the client. The client will use the inserted cookie in all subsequent requests. Whenever such a request arrives, the ADX will analyze the data and if it finds the cookie, select the server it initially selected. If there is no cookie, a new cookie will be inserted in the response by the ADX.