Skip to content

Comment on Ask HN: Is it possible to code a self-destructing message?

Comments

Generate a unique ID for the message. Once the page has loaded using the unique ID, pull message from database, display and remove appropriate database entry.

If the page is reloaded the message will no longer exist in the database and throw an error.

This is cool. Is there a service for this already? Maybe I'll make one.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.