Wednesday, 21 November 2012

After logout browser back button shows all visited page in cake php

Some time we logout from application, then we got successfully massage you are logout , but we click back button then we see we reach also last page where we logout.

I solve this problem with given below function.


Add below code in your AppController.php

 
 

public function beforeRender() {
    $this->disableCache();
   
}

No comments:

Post a Comment