Witam
Dlaczego polecenie $this->getUser()->clearCredentials(); nie czyści mi Credentials, po wywołaniu tego polecenia,
pobieram informacje z $this->getUser()->getAttribute tak jak przed czyszczeniem, dlaczego
Stachu
<?php $sesia=$this->getUser(); if (!$sesia->hasCredential('rezerwacja')) $sesia->addCredential('rezerwacja'); $sesia->setAttribute('daty',$staredaty,'rezerwacja'); ?>
<?php $daty=$this->getUser()->getAttribute('daty','','rezerwacja'); // i czyszcze credentiala $this->getUser()->removeCredential('rezerwacja'); // pomimo to moge ponownie odczytac dane $daty=$this->getUser()->getAttribute('daty','','rezerwacja'); // dlaczego, jak wyczyscic credentiala "rezerwacja" lub atrybut "daty" w credentialu "rezerwacja" ?>
<?php $sesia->setAttribute('daty',$staredaty,'rezerwacja'); ?>
<?php $daty=$this->getUser()->getAttribute('daty','','rezerwacja'); ?>
<?php $this->getUser()->getAttributeHolder()->remove('daty'); // usunie atrybut daty, nizależnie do jakiego credentiala atrybut był przypisany?, jak usunąć atrybut przypisany do konkretnego credentiala // bo mam wiele atrybutów a takiej samej nazwie a przypisane są do różnych credentiali ?>
<?php $sesia=$this->getUser(); $sesia->setAttribute('daty',$staredaty,'rezerwacja'); ?>
<?php $this->getUser()->getAttributeHolder()->remove('daty','rezerwacja'); ?>