开发者

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');

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜