Welcome Guest, Not a member yet? Register   Sign In
logout prrobem
#1

[eluser]Unknown[/eluser]
Hello guys i have a problem about session. When i logout while i click back button the page goes to last page.
function logout()
{

$this->session->sess_destroy();
redirect('main/login');
}
The page is refreshing but i can go to the last page i had taken…

how can i solve this problem.Pls help me
#2

[eluser]toopay[/eluser]
You can do that in any site, and will face the same result. Its a browser caching mechanism!
#3

[eluser]sofwan[/eluser]
One of the solution is use Javascript to disable back button. But, you know because it is JavaScript, so if the browser disable JavaScript, the script can't work.
But ... that's one way, suitable for certain condition.




Theme © iAndrew 2016 - Forum software by © MyBB