Site önbellek ile sorun zend auth logout script kullanarak

0 Cevap php

bu yüzden ajax ile zend auth açık kimliği işlevini çağırın ve ajax (yani kimlik temizledi var) true döndürür, ben sadece location.reload aracılığıyla tarayıcınızı yeniden ()

ve ne olur genellikle sayfasında şu var ki:

if ($this->auth->hasIdentity()) {

     echo "Welcome";

}

ve

if (!$this->auth->hasIdentity()) {

     echo "some login form";

}

but then since the page is cached by the browser....even though I've called the logout script through ajax (which clears the identity) vereload the page, the page still displays the welcome screen since it thinks that the page hasn't changed veso just displays the cache which contains the welcome screen rather than the login form when it's reloaded......

yeniden ne zaman sadece önbelleği kadar yük olmayacak şekilde jquery kullanarak elle önbelleği veya çeşit temizlemek için uzak var?

0 Cevap