These requests are refused by British Carriers these days on DETR guidlines. They are not illegal though.
I have operated several flights where we have arranged for the Pax making such requests to visit the flightdeck when we have landed. We are always busy on turnarounds so visits need to be brief but it is usually a well appreciated gesture.
WWW