Stateful session beans maintain a "conversational state" with the client and are good for sets of related tasks that span multiple client requests.
有状态会话bean维护客户机的“会话状态”,适合处理那些跨越多个客户机请求的任务。
We can track the cached state of the client session by using a client cookie. Listing 1 puts it together
通过使用一个客户机 cookie,我们可以跟踪客户机会话的缓存状态。
Storing session state in the client using HTTP cookies or hidden form fields has significant security risks — it exposes a part of your application internals to the untrusted client layer.
在客户端用HTTP cookie或者隐藏表单字段存储会话状态有很大的安全风险——它将应用程序的一部分内部内容暴露给了非受信任的客户层。
应用推荐