Class ClearSessionInterceptor

java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.ClearSessionInterceptor
All Implemented Interfaces:
Serializable, ConditionalInterceptor, Interceptor

public class ClearSessionInterceptor extends AbstractInterceptor

This interceptor clears the HttpSession.

Interceptor parameters:

  • None
  • None

Example:

 

 <action name="exampleAction" class="com.examples.ExampleAction">
     <interceptor-ref name="clearSession"/>
     <interceptor-ref name="defaultStack"/>
     <result name="success">example.jsp</result>
 </action>

 
 
See Also: