开发者

Session cookie - Servername info - can it be done in the application code

开发者 https://www.devze.com 2023-02-08 07:38 出处:网络
Scenario: 2 managed servers in a cluster. Application is deployed on t开发者_运维问答he cluster.

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().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号