Use case: Corporate short-term rental apartments
Problem: “Do not show the apartment info until the guest has checked in”.
Solution:
Instead of forcing the guests to create user profiles or logon accounts, we wanted to use basic cookies. However, the cookies needed to be unique to each apartment so that they would not mix up when the guest checked into another apartment in the future.
So, we added the possibility to let the cookie contain the apartment id (in this case, the variable lagenhet.id)
First, at check-in, we create the cookie using Form Actions:
Then, we use this in a Rule (in order to prevent a function from being visible before check-in):
Then, at check-out, we delete the cookie using Form-Actions:
Also, I added a Block to display that the user has checked in, using the the Rules again:



