Corrections according to https://www.drupal.org/node/2298559#comment-9230529

let's remove this check and all references to $_SESSION. I've found that many hosting providers don't allow SESSION.