@pradeeban 

I think you are restricting the domain of the cookie to the name of the back-end server, but the browser does not see the back-end server or its name. So the cookie will not apply, as the cookie has to be restricted to the domain that the user sees in the browser.