I cannot figure out this one for the life of me. Works fine in a development environment, but not in production.
Simple log in log out. The code below is from logout