FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Adding a self-destructing timer to a disposable email service
How-ToWeb Development

Adding a self-destructing timer to a disposable email service

via Dev.to Webdev15 Minute Mail2h ago

I run 15minutemail.com. The pitch is simple: you get an email inbox that lasts 15 minutes. When time's up, everything gets deleted. But if you need more time, you can extend it. Sounds trivial. It mostly was, except for the parts that weren't. The timer isn't just a countdown The obvious approach is to start a setTimeout on the client and show a countdown. That works for display purposes but it doesn't actually control anything. The real TTL lives on the server. When a user opens the site, the backend creates a session with an expires_at timestamp set to now + 15 minutes. This timestamp is stored in SQLite alongside the temporary email address. The client gets the expiration time in the API response and renders a countdown from it. If the user closes the tab and comes back, the timer picks up where it left off because it's based on the server timestamp, not a client-side counter. No cheating by refreshing the page. The cleanup job A background job runs every 60 seconds. It queries SQLi

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
0 views

Related Articles

Samsung Galaxy S26 and Galaxy S26+ Review: Lacking Ambition
How-To

Samsung Galaxy S26 and Galaxy S26+ Review: Lacking Ambition

Wired • 3h ago

5 kitchen splurges that I can't recommend enough
How-To

5 kitchen splurges that I can't recommend enough

ZDNet • 4h ago

Here’s how to rank the 50 best Apple products ever
How-To

Here’s how to rank the 50 best Apple products ever

The Verge • 4h ago

Fix Payment and Tax Issues in Museum Ticketing Software
How-To

Fix Payment and Tax Issues in Museum Ticketing Software

Dev.to Beginners • 5h ago

Difficulty vs Confusion in Tactical Games
How-To

Difficulty vs Confusion in Tactical Games

Medium Programming • 5h ago

Discover More Articles