I have ever worked with redirect (if not logged redirect to ...) but the project I'm working on requires a different approach. If logged show this content in the page, if not logged show that content in page.
My approach would be if auth load this view, if not auth load the other view.
Is there anything more elegant or more performant?
@martinbean Thanks for your reply. This approach - in my opinion - is good when you want to show/hide some parts of the page, not completely load a different page.
Thanks a ton for the answer, I reply just to add my view and add content to this board :)