Update:   (for others who might be trying to integrate with struts)

Ok, I couldn't get the filter to work (tried adding the filter to web.xml
and some other rather funky things...)

But I did realize I was making my original try at LogoutAction too hard, and
was able to create a rather simple version that seems to work:


LogotAction.java:
package whatever;
import org.apache.shiro.SecurityUtils;
public class LogoutAction{
  public String execute(){
             SecurityUtils.getSubject().logout();
             return "success";
  }
}

struts.xml:
 <action name="logoutAction" class="info.b2mu.action.LogoutAction">
   <result>/login.jsp</result>
 </action>

link in jsp:
<a href=&quot;&lt;s:url action=&quot;logoutAction&quot;/>">Logout 

This may not be the ideal solution, but it seems to work for now....



--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Shiro-logoutFilter-not-performing-logout-tp7578925p7578927.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to