Browse Source

Only one session is made.

master
Rogier Neeleman 9 years ago
parent
commit
5cb5c671ee
  1. 4
      application/controllers/Login.php

4
application/controllers/Login.php

@ -10,13 +10,12 @@ class Login extends CI_Controller @@ -10,13 +10,12 @@ class Login extends CI_Controller
public function __construct()
{
parent::__construct();
$this->load->library('session');
}
public function index()
{
// redirect if session exists
$this->load->library('session');
if($this->session->userdata('validated')){
redirect(base_url('/dashboard'));
}
@ -81,7 +80,6 @@ class Login extends CI_Controller @@ -81,7 +80,6 @@ class Login extends CI_Controller
private function _startsession($userdata)
{
// Start session with user data
$this->load->library('session');
$this->session->set_userdata($userdata);
// Redirect to dashboard

Loading…
Cancel
Save