• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sessions stopped working after 2nd day

I watched some video tutorials on creating and register and login for CI. The thing is that every thing was working fine the 1st day. Then the next day I wanted to log in and test some options I added and well it looks like the sessions are not getting set. So I been reading a lot on this matter and I'm confused on this. My code is below. Any one have any ideas why this just stopped working

public function login_validation() {
        if($this->form_validation->run()) {
            $data = array(
                'username'      => $this->input->post('username'),                
                'is_logged_in'  => 1                
        } else {            

Are you trying with same browser? same server? persist session in database? config.php->compare_user_agent?

Sorry, I forgot all about this. The problem was in the config.php file. I had some of the options set wrong. Sorry to have bothered you.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.