I want to display in a `<p:growl>` that the session has expired.

I found many methods to handle session expiration like:

* [Session timeout and ViewExpiredException handling on JSF/PrimeFaces ajax request](https://stackoverflow.com/questions/11203195/session-timeout-and-viewexpiredexception-handling-on-jsf-primefaces-ajax-request)

But I couldn't push a faces message to `<p:growl>`.

To the point, how can I automatically run some (JavaScript) code in client side when the HTTP session has automatically expired in server side?