Session cookie - Servername info - can it be done in the application code
Scenario: 2 managed servers in a cluster. Application is deployed on t开发者_运维问答he cluster.
Requirement: Application needs to send a cookie to the user with server info.
Question is regarding session cookies. Can the application retrieve the server name (for example ManagedServer1) from which that request has been processed and send to the user in the cookie.?
Request->process->Response with cookie containig the server name it was process by.
Can it be done in the application code?
/SR
Yes, see request.getServerName().
精彩评论