Answer the question
In order to leave comments, you need to log in
What redirect to use?
The kickOutIfLoginned() controller method kicks the user to the main page of the site if he is already logged in and tries to go to the registration page. That is, you just need to send the Location redirect header.
Question - what response code to use? I found a bunch of incomprehensible and conflicting information about old and new requirements and compatibility ... In this case, either 303 Temporary Moved (or maybe 307 ??), or 302 Found should be ...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question