'a browser cookie and a renewed cert issue

I logged in to my app and the TSL certificate has expired after 15 minutes. I renewed an expired certificate and I couldn't log in, however after clearing my browser's cookies I was able to login again.

My questions

Why did I need to clear browser cookies to be able to log in?

Are cookies somehow related to TSL certificate / (-es)?

Do old cookies become invalid upon TSL certificate expiration?

Are these issues specific to a given situation or is it a common behavior that an expired certificate makes a cookie invalid or is it something else (perhaps, app specific)?


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source