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);
            }
        }