Codeigniter is a most widely used PHP framework in the website development. I’ve been using codeigniter around one year, it works perfect in the caching system, application handling, views handling and so. When I tested the application which I’ve developed using codeigniter with MAC Operating System I was struggling to login to the application with MAC OS Safari browser, It works fine in MAC OS Firefox. When I surfed for the solution to fix the issue I came to know the issue is with codeigniter session. Then I searched the codeigniter forum to fix this issue I found this session library NG_Session
source : http://codeigniter.com/wiki/NG_Session/
I have followed all the steps to integrate into my application. But after storing the session in the database table also I couldn’t able to fix that issue. Some of the fields in ci_sessions table are filled with NULL values. After lots of Google search I couldn’t able to find out why session not setting in MAC OS Safari browser. Finally I found out that my application is running with the ip address so codeigniter internally handles somewhere session with the domain name. This was the minor thing which no one notice when application runs on all OS except MAC OS Safari browser.
Quick Fix is : You might be running your application under ip address when i changed to domain name the issue got resolved in MAC OS Safari and all browsers.This fix will also be applicable to all CMS build using codeigniter framework. Feel free to post a comment.
The post Fixed Mac OS Safari Codeigniter session/login/authentication issue appeared first on Mydons.