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
Please check your links and make sure they are written correctly. When writing absolute URLs, make sure you add the 'www' part. This was the problem in my case. I hope this helps someone.
Good: header("Location: http://www.yourdomain.com/controller/page");
Bad (breaks your session): header("Location: http://yourdomain.com/controller/page");