在会话中保存身份验证信息。
下拉列表项存储在会话中。
首先,您可以在会话之间和用户之间缓存测量值。
First, you can cache the measure values between sessions and across users.
我们将其用于存储以前可能存储在会话中的对象。
We will use it to store objects that might have previously been stored in the session.
在会话1中,用户向资源管理器发送一个资源请求。
In Session 1, the user sends a resource request to the resource manager.
也可以采用编程方式或由用户在会话结束之前关闭界面。
The interface can also be closed prior to the end of the session, either programmatically or by the user.
在会话1中,用户发送一个对DCE应用服务器的资源请求。
From Session 1, the user sends a resource request to the DCE application server.
此接口可以在会话eJB接口和类似于以下的实现中重用。
This interface can be reused in the session EJB interface and implementation like so.
在会话调用返回之后,servlet把请求转发给jsp页面。
After the session call returns, the servlet then forwards the request to a JSP page.
将bean存储在会话中以备portlet进一步使用
Stores the bean in the session for further use by the portlet
框架可以识别一个URL中的各个延续并将延续存储在会话中。
The framework can identify individual continuations within a URL and store that continuation in the session.
在会话内部,这通常是添加数据到数据库中、执行查询或删除数据。
Inside of a session it is typical to add data to the database, perform queries, or delete data.
可能的情况下,使用临时变量,特别是在会话中缓存项目时。
Use transient variables when possible, particularly when caching items in the session.
即使在会话bean中编写代码,与第二种解决方案相比性能是缓慢的。
Even if the code is written inside a session bean, performance will be slow compared to the second solution.
WeatherForecastbean被设计成在会话范围中运行。
The WeatherForecast bean is designed to operate with session scope.
此更改是在会话过程中动态更改的,而不仅限于进行身份验证时可用的信息。
This change is dynamic throughout the session, and is not limited to information available at authentication time.
下面所示的这些代码将会调用 EJB组件并将数据存储在会话范围之内。
The code that will invoke the EJB component and store the data in the session scope is shown below.
在非常少见的情况下,存储在会话中的某些对象可能被标记为瞬态的。
In rare cases, some objects stored in a session can be marked transient.
可以将它用作占位符来存储字符串值,稍后在会话处于激活状态时对其加以利用。
It can be used as placeholder to store the string values, which can be used later until the session is alive.
如果数据没有存储在会话中,则那些bean需要通过再次命中数据库来检索数据。
If the data was not stored in the session, those beans would need to retrieve it by hitting the database again.
出于安全性和不稳定性风险的考虑,知道什么东西适合或不适合存储在会话中很重要。
Because of the security and volatility risks, it is important to know what is and is not appropriate to store in the session.
在会话中,试着同时更新department表中的位置数据和部门名称。
In the sessions, try to update location data and department names in the table department in parallel.
sessionDestroyed——在会话失效或过期之后,容器调用这个方法。
SessionDestroyed - The container calls this method after a session is invalidated or expired.
如果全局变量是在会话内创建,则其他会话不能使用它,除非已经提交了这个工作单元。
If a global variable is created within a session, then it cannot be used by other sessions until the unit of work has committed.
如果一个特定参数太大,将被存储在会话中,并且只有引用键被存储在URL中。
If a specific parameter gets too large, it is stored in the session and only the reference key is stored in the URL.
缓存的内容可用于统计计算,这反过来又可用来预先生成用户在会话期间可能会请求的页面。
The contents of the cache can be used to compute statistics, which in turn can be used to precompute pages that users are likely to request during their sessions.
当将用户状态存储在会话对象中时,这通常意味着给定用户的请求全都针对同一个服务器实例。
When user state is stored in session objects, this generally implies that a given user's requests are all directed to the same server instance.
该属性告诉XDoclet在会话bean的本地接口、远程接口或两种接口中生成相应方法。
This tells XDoclet to generate the appropriate methods in the local interface, remote interface, or both interfaces for the session bean.
此外,无状态很难实现,可能会导致多次往返数据库来获取本来通常存储在会话上下文中的信息。
Additionally, statelessness can be difficult to achieve and can lead to multiple round trips to the database for information that is normally stored within the context of the session.
此外,无状态很难实现,可能会导致多次往返数据库来获取本来通常存储在会话上下文中的信息。
Additionally, statelessness can be difficult to achieve and can lead to multiple round trips to the database for information that is normally stored within the context of the session.
应用推荐