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
I solved this problem by configuring the $config['cookie_domain'] to localhost
$config['cookie_domain'] = "localhost";
i initially had that variable set to fully qualified domain name such as www.exampledomain.com but meanwhile i was using a local server.
The domain that your script is running under should be the same as the domain set under $config['cookie_domain] to avoid unexpected failure with codeigniter session class.