am trying to do the task of redirecting the user to the login page automatically when he leaves the website for 30 min + (shiro consider him loged out ).
what is happening: -user leave website long time (30+ min) -user will still be able to view the current page -once he click on any link he will be redirected to login what i need : -user leave website long time (30+ min) -shiro will redirect him to the login page without any need from him to click any link according to this page https://stormpath.com/blog/whats-new-apache-shiro-12/ i need to use logout.redirectUrl in the ini i tried but i was not successful on achieving this functionality here is my ini / [main] jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm jdbcRealm.authenticationQuery = SELECT password from users where user_name = ? jdbcRealm.userRolesQuery = select role_name from users_roles where user_name = (select user_name FROM users WHERE user_name = ?) ds = org.postgresql.ds.PGSimpleDataSource ds.serverName =localhost ds.user = postgres ds.password = 123456 ds.databaseName = example jdbcRealm.dataSource= $ds authc.loginUrl = /faces/login.xhtml user.loginUrl = /faces/login.xhtml logout.redirectUrl = /faces/login.xhtml multipleroles = com.example.util.MultipleRolesAuthorizationFilter [urls] /faces/login.xhtml = authc /faces/logout = logout /faces/authorized/** = user, multipleroles["admin,guest"] /faces/guest/** = user, multipleroles["admin,guest"] /faces/admin/** = user, roles[admin]/ -- View this message in context: http://shiro-user.582556.n2.nabble.com/Show-login-page-automatically-when-user-leave-website-long-time-tp7580203.html Sent from the Shiro User mailing list archive at Nabble.com.
