Auth in views via view.render


Did you visited the /404 page directly?



So it’s obvious that there is no logged in user.

Just go through the routes file and you can see that session is created in the root route. So you need to visit that first


I am logged in. I am sure about that.


How you can be logged in, when you are straightly visiting the /404 page?

The session is created by the / route


I go to the home page to log in, and then when I go to 404-page in the url, I get the errror.

I am logged in.