public function get_session($attr = null){
    if ( $this->session->has(self::$un) ){
      return $attr ? $this->session->get(self::$un, $attr) : $this->session->get(self::$un);
    }
  }
public function get_session($attr = null){
    if ( $this->session->has(self::$un) ){
      return $attr ? $this->session->get(self::$un, $attr) : $this->session->get(self::$un);
    }
  }
public function get_session ( $ attr = null ) { if ( $ this -> session -> has ( self :: $ un ) ) { return $ attr ? $ this -> session -> get ( self :: $ un , $ attr ) : $ this -> session -> get ( self :: $ un ) ; } }
Returns session property from the session's user array.

@param null|string The property to get
@return mixed
Returns session property from the session s user array .