title: Logout Link not working
body: <p>So I am trying to click a logout link and end the session, and it doesnt seem to be working.</p>
  
  <p>Link is located here:
  application -> views-> modules -> header.php
  like looks like this:</p>
  
  <pre><code>&lt;a href="../admin/logout"&gt;Logout&lt;/a&gt;
  </code></pre>
  
  <p>in the admin controller I have the function:</p>
  
  <pre><code>public function logout()
  {
      $this-&gt;session-&gt;unset_userdata('logged_in');
      session_destroy();
      redirect('admin', 'refresh');
  }
  </code></pre>
  
  <p>My routes files for admin look like this:</p>
  
  <pre><code>$route['admin/(:any)'] = 'admin/view/$1';
  $route['admin'] = 'admin';
  </code></pre>
  
  <p>Admin views folder is located: views -> admin</p>
  
  <p>Question: When I click on my logout link it does nothing. Like in my admin if there is no session it gets redirected to a login screen. That works but when I log out if it was redirecting to the admin page which is suppose to redirect to the login page if there is no session why is nothing happening?</p>