Change Session Expired Notification ?

I’ve looked on this forum and the Google for answers to this very question and while some answers are provided, no workable examples are.

I’m interested in changing not only the message itself, but also the TYPE of Notification (ie. how it’s presented in the UI). Can anyone please provide a simple example of how I would achieve this?

Thanks.