Declaration:
<? interface SessionHandler ?>
Description: SessionHandler interface allows to create different session implementations in a standard way. Each session implementation must be able to carry session variables between requests and to maintain a logged user. The Session API does not define how to handle users, but it guarantees that each session implementation will be able to carry user between requests. It is up to the application which user model to choose. All accesses to session impelmentation, or session handler, is done via static methods of a special Session class. Each session implementation must provide a static method load() that returns the instance of session implementation class and will take necessary actions to create that instance if the session has not yet been created. The loader will call the appropriate handler class' static method load() and it will return the instance of the session implementation class. That instance will be passed to the Session class and further all session access will be passed to it. The session implementation must define the isExpired() method to track session expiration. In case of expired session the load() method must return a new, valid session but it must return true from a call to isExpired() method. If the session has expired, a new handler should be created but return true in a call to its isExpired() method. Authors:
Methods:
|
|