Hello
I can help you to fix the logout issue you are experiencing, I do have extensive experience with PHP and back end technologies for many years and from your details, it seems to be a cache expiry issue.
If you would like to send through some additional information on the project, we can confirm and I can complete the necessary changes for you.
Thank you
Darren