会话超时后Grails Spring Security重定向 [英] Grails Spring Security Redirect after Session-Timeout
本文介绍了会话超时后Grails Spring Security重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了会话超时问题。在我的grails应用程序中,用户在会话超时后登录,但后来进入最后编辑的页面。我想阻止它并将它们发送到特定的URL。我怎么能做到这一点,我不能在春季安全文件中找到一些东西。
问候。 方案
根据 docs ,看起来您可能会使用以下组合:
successHandler。 defaultTargetUrl =/ whatever / url / you / want
successHandler.alwaysUseDefault = true
I have an issue with the Session Timeout. In my grails application an user logs in after a session timeout, but then gets to the last edited page. I want to prevent that and send them to a specific URL. How can I achieve this, I cant find something in the spring security documentation.
Greetings.
解决方案
Per the docs, it looks like you might be able to use a combination of:
successHandler.defaultTargetUrl="/whatever/url/you/want"
successHandler.alwaysUseDefault=true
这篇关于会话超时后Grails Spring Security重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文