Class

atg.projects.b2bstore.servlet.WACheckSessionExpiration

Component

/atg/dynamo/servlet/dafpipeline/CheckSessionExpiration (DAF)
/atg/projects/b2bstore/servlet/CheckSessionExpiration (DAS)

CheckSessionExpiration checks the session associated with the request to see whether the it has expired and when it has, what caused the expiration. By examining the sessionRestored parameter of the Dynamo request, CheckSessionExpiration can determine if the session ended because of a server failure. When a Dynamo server fails during a request, a second Dynamo server creates a new session, retrieves information about the first session from the backup server, and changes the sessionRestored parameter from null to the original session ID to indicate that the session ID is invalid. CheckSessionExpiration reads sessionRestored and halts the request, if sessionRestored indicates it’s been superseded by another request. Otherwise, CheckSessionExpiration assumes the session was ended due to an expired cookie, in which case it redirects the user to the URL provided in its URLExpiration property.

This servlet is used only by the Motorprise Reference Application. For information on how CheckSessionExpiration is used in Motorprise, see the CheckSessionExpiration section of the RequestPipelineServlets chapter of ATG Business Commerce Reference Application Guide.

 
loading table of contents...