Fixed Mac OS Safari Codeigniter session/login/authentication issue

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.

One Response to “Fixed Mac OS Safari Codeigniter session/login/authentication issue”
  1. Awesome this was driving me crazy, just changed my etc/hosts file all is better!

  2. Just Browsing…

    While I was browsing yesterday I saw a great article concerning…

  3. Must Read Contribution…

    The blog post is greatly endorsed by me….

  4. Roman Blinds says:

    Informative and precise…

    Its difficult to find informative and precise info but here I found…

  5. Nice Focus….

    I really like the direction you’ve decided to take this blog….

  6. News info…

    I was reading the news and I saw this really interesting info…

  7. Just Browsing…

    While I was surfing today I noticed a excellent post concerning…

  8. Looking around…

    I like to look in various places on the internet, regularly I will just go to Digg and read and check stuff out…

  9. Jennifer says:

    Its hard to find good help…

    I am regularly proclaiming that its hard to find good help, but here is…

  10. Looking around…

    I like to surf around the online world, regularly I will just go to Stumble Upon and read and check stuff out…

  11. Informative and precise…

    Its hard to find informative and accurate information but here I found…

  12. Great site you have…

    […]loads addiitional information for this types of area of interest on websites, observe[…]…

Leave a Reply