One interesting tech solution I've seen at Argo Tea in NYC is the deployment of Wi-Fi codes on receipts: each code lasts for about half an hour or an hour.
Giving them codes that relate to the total cost of their receipt, so for example 1 coffee = 30 minutes, 2 = 60 so that way when you have a group you each get 30 minutes or something.
It doesn't need to be foolproof to work. Even an unenforced sign that said "wifi access limited to 60 minutes" would set expectations and deter most folks.
This happens at a highly-frequented SBux in Lisbon's Rossio train terminal. There's a code on the receipt for 45 min of usage but, the one and only time I went there, I used the net for hours and it didn't turn off. I think it's just to deter people.