All Miracle Tickets expire two weeks after you get them in your inventory. So yeah, those things are gone if you're logged out for a long time.
The game starts to remind you upon login when you have an item about to expire in the next week, so for active players it's unlikely you'll forget.