What exactly goes on when DELETE /session/username is invoked?

I think what you are after is SiteSetting.log_out_strict