PHP session isset() syntax check -


i trying following:

if(isset($_session['members']||$_session['fbid'])){ } 

i getting unexplained syntax error. code invalid?

you can't combine syntax within language construct. in case need 2 separate isset calls logical or between them

if(isset($_session['members']) || isset($_session['fbid'])){ } 

Comments