InfoCenter Home >
4: Developing applications >
4.4: Personalizing applications >
4.4.1: Tracking sessions >
4.4.1.1: Session programming model and environment >
4.4.1.1.7: Tuning session support >
4.4.1.1.7.7: Tuning session support: Scheduled invalidation

4.4.1.1.7.7: Tuning session support: Scheduled invalidation

You can set specific times for the Session Manager to scan for invalidated sessions. When used with persistent sessions, this feature has the following benefits:

  • The scan for invalidated sessions can be scheduled for times of low application server activity, avoiding database contention between invalidation scans and read/write operations to service HTTP session requests.
  • There may be significantly fewer database write operations when running with the End of Service Method" write mode, because the session's last access time need not be written out after each HTTP session request. (Manual Update and Time Based Write options already minimize the writing of the last access time.)

Usage considerations

  • With scheduled invalidation configured, HttpSession time-outs are not strictly enforced. Instead, all invalidation processing is handled at the configured invalidation times.
  • HttpSessionBindingListener processing is handled at the configured invalidation times unless HttpSession.invalidate( ) is explicitly called.
  • The HttpSession.invalidate() method immediately invalidates the session from both the session cache and the database.
Go to previous article: Tuning session support: Write contents Go to next article: Tuning session support: Tablespace and page sizes

 

 
Go to previous article: Tuning session support: Write contents Go to next article: Tuning session support: Tablespace and page sizes