Fixed php session variable, session_is_registered no longer works.