Can You Stay in Hotel on Expired Visa?

When you check in to a hotel they usually check your passport. Do they check the visa and if it's still valid, or just the passport? Does it matter? It wouldn't be a horribly expired visa, just over 90 days
It's been my experience that hotels have never, that I have noticed, check anything other than the "face page" of my passport. I have never noticed them at reception looking through the booklet for anything. I believe all they are really interested in is the passport number and perhaps the expiration date.