Welcome Guest, Not a member yet? Register   Sign In
Prevent users using the back button.
#1

[eluser]richzilla[/eluser]
How can i prevent my users from using the back button on their browser to return to a secured area after theyve been logged out? at present i have a simple logout procedure:

Code:
function logout() {
            $this->session->sess_destroy();
            $this->load->view('site_view');
        }

and the login check for my secure pages is:

Code:
function secure() {
            if ($this->session->userdata('loggedIn') == TRUE) {
                $this->load->view('secure_page');
            }
            else {
                $this->session->set_flashdata('status','You must be logged in to view this page.');
                redirect('site');
            }

yet after my users have logged out of the page, they can still click the back button and return to the visited page?

any help would be appreciated.

Thanks.


Messages In This Thread
Prevent users using the back button. - by El Forum - 09-03-2009, 04:24 AM
Prevent users using the back button. - by El Forum - 09-03-2009, 05:37 AM
Prevent users using the back button. - by El Forum - 09-03-2009, 06:40 AM
Prevent users using the back button. - by El Forum - 09-03-2009, 07:05 AM
Prevent users using the back button. - by El Forum - 09-03-2009, 07:21 AM
Prevent users using the back button. - by El Forum - 09-03-2009, 07:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB