I try to find answers on this without success and I can't fix it by myself just editing the code

When I'm logged in on the portal/forum and either click on logo or portal link I will get logged out. How do I solve this simple issue?
I think my cookie settings is correct but I send you a printscreen of that also.

