Cant use if($_SESSION)


On my local server I look if session is started with

if(!$_SESSION){ session_start(); }

I can’t use it on 000webhost, but get error

Undefined variable: _SESSION

Can I write it so it works?



Oh I found it was just a PHP notice, something else caused the page to stop…