I\'m using codeigniter as a framework.
Firstly, I use localhost but when I change to my IP address the login function doesn\'t work anymore. I found that th
localhost
You should add one thing to your autoload.php file.
$autoload['libraries'] = array('database','session');
this will solve your session re-direction problem