In regards to the original topic new regulations seem to be:
If you do not exit Costa Rica for a full 24 hrs, you will be given either 30, 45 or 60 days visa, depending on your attitude and the official.
Since you are now asked for a return airplane ticket when you enter ANY CR entrances, they will give you a visa according to your Departure Date, including both San José or Liberia airports.