removed session array dereferencing since function array dereferencing added in PHP 5.4