Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails Spring Security Redirect after Session-Timeout

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.

like image 528
dildik Avatar asked Feb 18 '26 08:02

dildik


1 Answers

Per the docs, it looks like you might be able to use a combination of:

successHandler.defaultTargetUrl="/whatever/url/you/want"
successHandler.alwaysUseDefault=true
like image 181
Gregg Avatar answered Feb 20 '26 18:02

Gregg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!