Undefined function session_path/2

The error says there is no session_path, which is the case…

Which line in your router makes You think it is?

You might confirm with

$ mix phx.routes