Class RandomHttpSessionIdGenerator

java.lang.Object
com.tangosol.coherence.servlet.RandomHttpSessionIdGenerator
All Implemented Interfaces:
HttpSessionIdGenerator

public class RandomHttpSessionIdGenerator extends Object implements HttpSessionIdGenerator
A default implementation of HttpSessionIdGenerator. It generates session ids for newly created sessions models.
Since:
Coherence 3.6
Author:
jk 2009.08.25
  • Constructor Details

    • RandomHttpSessionIdGenerator

      public RandomHttpSessionIdGenerator()
      Default constructor.
  • Method Details

    • generateSessionId

      public String generateSessionId(int length)
      Generate a potential session identifier. The returned identifier may be in use already.
      Specified by:
      generateSessionId in interface HttpSessionIdGenerator
      Parameters:
      length - session id length
      Returns:
      a potential session identifier