Welcome Guest, Not a member yet? Register   Sign In
Issues sending flashdata through my site
#3

[eluser]brianatlarge[/eluser]
Wow, thanks! In my users controller login method I changed

Code:
if($_POST) {
     $this->load->model('Users_model');
     if($this->Users_model->check_login()) {
      redirect('');
     } else {
      $data['error'] = $this->session->flashdata('error');
      load_template('login','login', $data);
     }
   // If no login information has been sent, display the login form
    } else {
     load_template('login','login');
    }

to

Code:
if($_POST) {
     $this->load->model('Users_model');
     if($this->Users_model->check_login()) {
      redirect('');
     } else {
      $data['error'] = $this->session->flashdata('error');
      redirect('login');
     }
   // If no login information has been sent, display the login form
    } else {
     load_template('login','login');
    }

So redirecting fixed it!


Messages In This Thread
Issues sending flashdata through my site - by El Forum - 03-01-2012, 07:03 AM
Issues sending flashdata through my site - by El Forum - 03-01-2012, 07:23 AM
Issues sending flashdata through my site - by El Forum - 03-01-2012, 07:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB