DEV: Expire `cn` cookie at end of session (PR #13659)

This cookie is used to transmit notification read state to the server. It is always cleared by the server on the next page load, so there is no need for the expiry to be so long. This commit updates it to expire at the end of the session (the default), and replaces raw document.cookie usage with our cookie library.

GitHub