Urgent.News

What's breaking now, across thousands of outlets.

Tech

Secure sessions: flash data, timeout and anti-fixation protection

Perché la sessione e il punto più sensibile In un'applicazione web, la sessione e il legame tra il browser dell'utente e il suo stato sul server. Chi controlla la sessione controlla l'identita dell'utente. Per questo la gestione delle sessioni non e solo una questione di comodità — e una questione di sicurezza. Un cookie di sessione rubato o un ID di sessione prevedibile possono dare accesso…

Translated from Italian Read in Italian

The article discusses the importance of secure session management in web applications, specifically in the context of Soft PHP MVC's SessionStorage singleton. It highlights the risks of stolen or predictable session IDs and describes the measures taken by SessionStorage to prevent common attacks, including cookie hardening with flags such as HttpOnly, Strict Mode, Secure, and SameSite.

The article also explains the distinction between lifetime and timeout in session management, as well as the use of flash sessions to store temporary data. Additionally, it touches on the importance of regenerating session IDs after login to prevent session fixation attacks. SessionStorage provides various methods to manage sessions securely, including setting lifetime and timeout, handling flash messages, and regenerating session IDs.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

COSS Weekly: Databricks acquires Electric, Stripe reportedly acquires OpenRouter, Temporal in talks for $500M, and more

This week in COSS: Dash0 acquired Polar Signals, while Stripe reportedly reached a deal to acquire OpenRouter for more than $7 billion; Dynatrace acquired Arize, and Databricks acquired Electric.

  • Databricks acquires Electric for AI agent sandboxes
  • Stripe reportedly acquires OpenRouter for $7 billion
  • Temporal in talks for $500M round at $12B pre-money valuation

More from Thursday 20 August →