Programming Phoenix logs a user out with
Phoenix in Action logs a user out with
|> clear_session() |> configure_session(drop: true)
Clears the entire session.
This function removes every key from the session, clearing the session.
Note that, even if
clear_session/1is used, the session is still sent to the client. If the session should be effectively dropped ,
configure_session/2should be used with the
:dropoption set to
So just wondering why are both being used?