If you do not call session_start(), you will not have $_SESSION. But if the page is a static html file, since you will not need it $_SESSIONfor this page, so you do not have to worry about it.
You only need this on the pages where you do something with $_SESSION
source
share