check session has been defined in common helper,