@ -271,6 +271,60 @@ The code below demonstrates how to customize the `RequestCache` implementation t
@@ -271,6 +271,60 @@ The code below demonstrates how to customize the `RequestCache` implementation t
There are a number of reasons you may want to not store the user's unauthenticated request in the session.
You may want to offload that storage onto the user's browser or store it in a database.
Or you may want to shut off this feature since you always want to redirect the user to the home page instead of the page they tried to visit before login.
To do that, you can use {security-api-url}org/springframework/security/web/savedrequest/NullRequestCache.html[the `NullRequestCache` implementation].