Genadinik
Genadinik

Reputation: 18639

Php error log message about _SESSION not being a defined variable

I use _SESSION in many parts of my application, but for some reason, my error logs keep having this line in there:

Undefined variable: _SESSION

Does anyone know why it outputs that and how I can stop that?

Upvotes: 1

Views: 799

Answers (2)

Gaurav
Gaurav

Reputation: 28755

it should be $_SESSION not _SESSION

Upvotes: 2

royrui
royrui

Reputation: 1207

Hm... did you try

session_start();

on the first line?

Upvotes: 4

Related Questions