All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.ref-managerproptab.html Maven / Gradle / Ivy



Manager Properties

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.

Use the Manager Properties page to add or modify session manager properties for the web container.

The Manager Properties page contains the following options.

Load Defaults

Button to restore settings that have default values to their default values. Settings that do not have default values are not changed.

Configuration Name

The name of the configuration to which the settings on this page apply. This field is read only.

Reap Interval

The number of seconds before 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.

Max Sessions

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.

Session File Name

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.

Session ID Generator Class Name

The custom class for generating unique session IDs. Only one session ID generator class per server instance is permitted, and all instances in a cluster must use the same session ID generator to prevent session key collision. The class must be in the Application Server classpath. By default, a custom class is not set.

Additional Properties

Additional properties for the session manager. GlassFish Server does not define any additional properties for the session manager.

Related Tasks
Related asadmin Commands

None.

Copyright © 2005, 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2024 Weber Informatics LLC | Privacy Policy