EllisLab text mark
Advanced Search
     
Closing Sessions
Posted: 07 October 2012 01:01 AM   [ Ignore ]
Avatar
Joined: 2012-10-02
71 posts

Hi everyone! It’s me again.

Currently, I have this logout function

public function logout() {
  $this
->session->sess_destroy();
  
redirect('main/index');
 

and this is the logout link

echo "<li class='left'>".anchor(base_url('site/logout'), 'Logout')."</li>"

It goes to logout function and redirect to index.
Problem: But when I try to click the back button, the session is still there
Help.

 
Posted: 07 October 2012 01:10 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2009-05-17
1415 posts

Apply no-cache headers. Search on Google or see MY_Controller of Community Auth.

 Signature 

Brian
Brian’s Web Design - Temecula
Community Auth - CodeIgniter Authentication Application