画江湖之不良人 2017-10-15 06:26 采纳率: 75%
浏览 2295

请问 使用shiro想去掉remmemberMe

shiro 并没有配置 rememberMe相关配置 , 但是在浏览器cookie里却有 rememberMe ,造成session过期,一刷新浏览器又能继续访问需要认证的链接, 求大神指导. 小弟在此谢过了.

图片说明

图片说明

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.1.xsd ">












<!-- -->

<property name="filterChainDefinitions" >
    <value>
        <!-- 静态资源匿名访问 -->
        /images/** = anon
        /js/** = anon
        /styles/** = anon
        /image/** = anon
        /script/** = anon
        /style/** = anon

        <!-- 必须将登录action 及登录提交action匿名  -->
        /home/index.action*= anon
        /loginsubmit.action* = anon
        <!-- /validatecode.jsp* = anon -->
        <!-- 退出登陆的地址,shiro去清楚session  -->
        /home/logout.action = logout
        <!-- /cgd/addcgd.action = perms["cgd/addcgd.act"] -->
        <!-- 如果设置 Cookie 记住我, 则不能使用此user过滤器,还会拦截  -->
        /index.jsp* = user
        <!-- /first.action* = user -->
        <!-- /welcome.action* = user -->
        <!-- /getmenus.action* = user  -->
        <!-- 所有的URL都必须认证通过才能访问,  -->
        /** = authc 
        <!-- 所有的url 都可以匿名访问 -->
        <!-- /** = anon -->
    </value>
</property>

  • 写回答

1条回答 默认 最新

  • devmiao 2017-10-15 15:56
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考