ClientSession
 
- home
- download
- quick start
- options
- performance
SourceForge.net Logo
Home

What is it?

ClientSession is a compact java library for securely maintaining web client state on the client side rather than on the server. For example, rather than the J2EE application server maintaining the client state in a Session a web browser can maintain the client state in a string passed between pages.

Why is that a good thing?

There are several problems with server based sessions that ClientSession can solve:

  • Timeouts
  • With a server side session there are competing pressures on the length of timeout. Keeping the timeout short reduces stale sessions, but increases the frequency with which the user's session times out while still in use.

  • Server memory usage
  • Memory on the server is a limited resource. With a server based session, scaling to many users with large sessions could mean running out of memory. This problem is eliminated if sessions are stored on the client side.

  • Server-side network overhead in a clustered environment
  • Sessions in a clustered environment can cause substantial network overhead when sessions are synchronised between servers.