UI message about cookie expire

I was adding some content to the page and it seems in the background Panel cookie was expired but there’s no message about this, so I click save button and I was redirected to the login page, without my any changes made to the content.

I recommend to show a simple UI message.