en.help.task-webcontainermanagerprops.html Maven / Gradle / Ivy
Show all versions of console-web-plugin-help
To Configure Manager Properties for the Web Container
The session manager provides the means to configure how sessions are created and
destroyed, where the session state is stored, and the maximum number of sessions
that are available.
- In the navigation tree, expand the Configuration node.
- Select the configuration that you are changing.
- Under the configuration's node, select the Web Container node.
The General Properties page opens.
- On the General Properties page, click the Manager Properties tab.
The Manager Properties page opens.
- In the Reap Interval field, type the number of seconds before the inactive
session data is deleted from the store.
The default value is 60.
Set this value lower than the frequency at which session data changes. For
example, this value should be as low as possible (1 second) for a
hit counter servlet on a frequently accessed web site; otherwise, you could lose
the last few hits each time you restart the server.
- In the Max Sessions field, type the maximum number of sessions that can
be in cache.
A value of –1 indicates no limit to the number of sessions. The
default value is –1.
After the limit is reached, an attempt to create a new session causes
an IllegalStateException to be thrown.
- In the Session Filename field, type the absolute or relative path to the
directory in which the session state is preserved between application restarts, if preserving
the state is possible.
If this path is not set, the session state is not preserved. By
default, this path is not set.
A relative path is relative to the temporary directory for this web application.
This setting is applicable only if the Persistence Type is memory. To set the
Persistence Type, see To Configure Availability Settings for the Web Container.
- (Optional) In the Additional Properties section, specify additional properties.
The GlassFish Server does not define any additional properties for the session manager.
- To add a property, click the Add Property button. In the blank row
that appears, type the property name in the Name field, and type the
property value in the Value field.
- To modify a property, edit that property's Value field.
- To delete a property, select the checkbox to the left of the Name
field of the property that you are deleting, then click the Delete Properties
button.
- Click Save.
Tip - To return to the default settings, click the Load Defaults button, then click
Save.
See Also
-
-
-
-
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices