Christopher Shennan’s Blog

A day in the life of…

Browsing Posts tagged Zend Framework

A few weeks ago I posted a blog entry about problems with Zend clearIdentity() with IE7 and Chrome but I’ve since found that the Zend Framework was not at the root of the problem.  After discussing the problem with a colleague we found that there was a line in the bootstrap.php file like:-

ini_set(’session.cache_limiter’, ‘private’);

continue reading…

Today I have found a new nemesis in the form of the Zend Framework!  I have been working on a client website that for some reason just will not allow them to log out properly when they’re using IE7 or Google Chrome but it works fine in Firefox (please don’t post the “get a better browser” comments as it’s really not very helpful).

I’ve check the online examples and my logout function is identical, line for line, as the examples.

public function logoutAction()  
{  
    // clear everything - session is cleared also!  
 
    Zend_Auth::getInstance()->clearIdentity();   
    $this->_redirect('/login/index');  
}

For some reason in IE7 and Chrome it only seems to execute the logoutAction() function if i do a hard refresh (Ctrl + F5) otherwise it redirect to the login form but the login details do not seem to get erased and I can still access the administration pages as if I am still logged in.

It’s driven me crazy all afternoon and I eventually had to give up for the day and hope that it’ll all become clear tomorrow when my mind is fresh and my coffee is strong!