How to kill the session in cakephp?
m work开发者_JS百科ing on loginmodule. In logout module, m destroying the session. After logging out, If i click back button m getting the user information. Please, help me to fix this bug.
Thanks
$this->Auth->logout();
$this->Session->destroy();
Is that not doing it for you?
The reason being is that your browser has cached the page, so clicking back would always show the user information. There is not much you can do about this.
this might help http://cakephp.1045679.n5.nabble.com/After-logout-browser-back-button-shows-all-visited-page-td1321477.html
HI, If session->destroy does not work the try with Session->del('session name'); and for all session nma
Its better to delete session using the "$this->Session->delete('SessioName');
精彩评论