Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EbrahemSamer's avatar

What heppen when Session Dies ( PHP ) ?

I am Using this logic to keep session active

if (session_status() == PHP_SESSION_NONE) { session_start(); }

But Sometimes when I leave my computer for one hour and get back and refresh the page, System logs me out

Or the loading page works for ever...

How Can I prevent this.

0 likes
1 reply

Please or to participate in this conversation.