I want to give users a custom logout message based on their role, but on logout the $user
variable is no longer available.
How can I achieve this? I figured the key might be with $_SESSION, during login, but I am not sure exactly how to store user role in the session.