Cookie “security_authentication” has been rejected because it is already expired

I get this warning when logout and then it throws an error with 500 Internal Server error.

Cookie “security_authentication” has been rejected because it is already expired.

I see the validity showing a previous timing as well.

image