在J2EE Web应用程序中,一共有4种会话作用域。
保存在会话中的数据的生命期,最长是从用户访问域的那一刻到用户在预设的一段不活动时间之后超时的那一刻。
The life span of the data saved to a session is, at most, from the moment the user accesses a domain to the moment when a user times out after a preset amount of time of inactivity.
使用会话Bean作为远程外观使用,对复杂交互进行包装,并减少Portlet和域对象间的远程调用。
Use session beans acting as remote facades to wrap complex interactions and to reduce remote calls between portlets and domain objects.
应用推荐