function setAuthenticated($state)
        {
            if($state == false)
            {
                $this->container->get('session')->remove('autenticated');
                if($this->container->get('session')->has('identity'))
                {
                    $this->container->get('session')->remove('identity');
                }

            }
            else
            {
                $this->container->get('session')->set('autenticated',true);
            }
        }
function setAuthenticated($state)
        {
            if($state == false)
            {
                $this->container->get('session')->remove('autenticated');
                if($this->container->get('session')->has('identity'))
                {
                    $this->container->get('session')->remove('identity');
                }

            }
            else
            {
                $this->container->get('session')->set('autenticated',true);
            }
        }
function setAuthenticated ( $ state ) { if ( $ state == false ) { $ this -> container -> get ( 'session' ) -> remove ( 'autenticated' ) ; if ( $ this -> container -> get ( 'session' ) -> has ( 'identity' ) ) { $ this -> container -> get ( 'session' ) -> remove ( 'identity' ) ; } } else { $ this -> container -> get ( 'session' ) -> set ( 'autenticated' , true ) ; } }
Sets the authenticated status of this user.
@param  bool
@return static
Sets the authenticated status of this user .