If the secret key for an app changes, the user session can become corrupted.

If the secret key for an app changes, the user session can become corrupted. Check for this, and clear the session variables.

Would love to hear your thoughts on this - worked for me, but I'm not sure if this is the best implementation.

Thanks