开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜