Get an error Unknown or invalid login ticket

I got the same issue and struggling to figure out the reason. I notice after clearing the cache , the user manages to login but it definitely not a way to solve this case.