How to enable better session expire message?

Eventhough I have the latest web application master (3656) I am still getting weird session expire messages (Exception has been thrown by the target of an invocation (in English))

Isn’t it something necessary to configure somewhere?

You need to set up FluorineAuthenticationFilter. It is configured in Startup.cs.

First add a reference to Microsoft.Owin.Extensions:

using Microsoft.Owin.Extensions;

Then add following two rows to Configuration method before user manager configuration:

app.Use(typeof(FluorineAuthenticationFilter));
app.UseStageMarker(PipelineStage.PostAuthenticate);