|Tools and Modules / HTTP Session Management Modules|
This section provides information on sticky load balancers, session expiration, additional GemFire property changes, serialization and more.
Typically, session replication will be used in conjunction with a load balancer enabled for sticky sessions. This involves, among other things, establishing a JVM route (JVMRoute=value). Refer to SpringSource ERS as a possible load balancing solution.
To set the session expiration value, you must change the session-timeout value specified in your application server's WEB-INF/web.xml file. This value will override the GemFire inactive interval specified by maxInactiveInterval within context.xml.
If you want to change additional GemFire property values, refer to instructions on manually changing property values as specified in the GemFire module documentation for Tomcat (Changing the Default GemFire Configuration in the Tomcat Module) and Application Servers (Changing the Default GemFire Configuration in the AppServers Module).
GemFire provides the gemfire command-line tool to perform basic administrative tasks. gemfire.sh (for Unix) and gemfire.bat (for Windows) should be located in the /bin subdirectory of the HTTP module distribution.
To acquire GemFire module version information, look in the web server's log file for the following message:
Nov 8, 2010 12:12:12 PM com.gemstone.gemfire.modules.session.catalina.AbstractCacheLifecycleListener lifecycleEvent INFO: Initializing GemFire Modules Version 1.1
Objects managed by the HTTP Session Management Module must be serializable since the session's objects are serialized before being stored in the region.