Welcome Guest, Not a member yet? Register   Sign In
Code Igniter Session problem
#24

[eluser]Unknown[/eluser]
Thank everyone for the info here.

This problem has been vexing me for some time now. I tried all manner of fixes to the session object but they just kept getting rejected by safari and firefox. Tonight when I went into my log directory to start tailing the log before another bout of debugging I noticed that the year part of the date was 0000. "That's odd," I said aloud, "I guess the server date is off. Config issue." and then went about some simple debugging.

After a bit I surfed the web again this time for "safari, firefox session codeigniter", then I hit this paydirt. Let me tell you all, it doesn't have to be that your server is out of sync. There can be something far worse. Like perhaps your server is old. Like mine, old as dirt. I'm using a PPC Mac for dev. It doesn't get much attention from the PHP world. That's how a bug in date formatting/calculation can crop up!

That's right, all this talk about time reminded me of that log file with the year of 0000 rather than 2009. It appears that somewhere in late september or early october mac updated the version of PHP (or I did?) to a new release that had a bug. PHP now believes it is year 0000 on the PPC build that I have. See the bug: http://bugs.php.net/bug.php?id=48276, which is fixed in CVS, and maybe in a final build, but I'm not so sure about messing with PHP on my system.

My fix is to just prepend the "20" and use date('y') instead of date('Y') to two calls in system/helpers/date_helper.php. Yes, it's a hack, but it gets session working (and lord knows what else) and I'm not expecting this app to run for 90 more years. I may not check this in and only have it run on my dev machine. Either way, thanks for pointing me in the right direction.


Messages In This Thread
Code Igniter Session problem - by El Forum - 10-22-2007, 08:29 AM
Code Igniter Session problem - by El Forum - 10-22-2007, 09:42 AM
Code Igniter Session problem - by El Forum - 10-22-2007, 10:05 AM
Code Igniter Session problem - by El Forum - 10-23-2007, 12:12 AM
Code Igniter Session problem - by El Forum - 10-23-2007, 02:34 AM
Code Igniter Session problem - by El Forum - 11-07-2007, 07:31 PM
Code Igniter Session problem - by El Forum - 11-22-2007, 09:18 AM
Code Igniter Session problem - by El Forum - 11-22-2007, 12:29 PM
Code Igniter Session problem - by El Forum - 11-24-2007, 08:26 PM
Code Igniter Session problem - by El Forum - 11-24-2007, 08:45 PM
Code Igniter Session problem - by El Forum - 11-24-2007, 09:33 PM
Code Igniter Session problem - by El Forum - 11-25-2007, 03:56 AM
Code Igniter Session problem - by El Forum - 11-25-2007, 08:12 AM
Code Igniter Session problem - by El Forum - 02-26-2008, 08:46 AM
Code Igniter Session problem - by El Forum - 02-26-2008, 12:42 PM
Code Igniter Session problem - by El Forum - 04-21-2008, 10:11 PM
Code Igniter Session problem - by El Forum - 04-28-2008, 03:48 PM
Code Igniter Session problem - by El Forum - 05-20-2008, 12:16 PM
Code Igniter Session problem - by El Forum - 08-01-2008, 03:38 PM
Code Igniter Session problem - by El Forum - 09-16-2008, 11:44 AM
Code Igniter Session problem - by El Forum - 07-31-2009, 01:59 PM
Code Igniter Session problem - by El Forum - 08-27-2009, 05:20 PM
Code Igniter Session problem - by El Forum - 10-17-2009, 12:28 AM
Code Igniter Session problem - by El Forum - 11-30-2009, 09:06 PM
Code Igniter Session problem - by El Forum - 01-18-2010, 11:47 PM
Code Igniter Session problem - by El Forum - 03-02-2010, 09:34 AM
Code Igniter Session problem - by El Forum - 10-05-2010, 05:30 AM
Code Igniter Session problem - by El Forum - 10-05-2010, 08:16 AM
Code Igniter Session problem - by El Forum - 10-06-2010, 08:20 AM
Code Igniter Session problem - by El Forum - 10-06-2010, 09:12 AM
Code Igniter Session problem - by El Forum - 10-09-2010, 11:04 AM
Code Igniter Session problem - by El Forum - 10-25-2010, 08:52 AM
Code Igniter Session problem - by El Forum - 11-03-2010, 03:47 AM
Code Igniter Session problem - by El Forum - 11-03-2010, 10:32 AM
Code Igniter Session problem - by El Forum - 11-18-2010, 01:05 PM
Code Igniter Session problem - by El Forum - 11-18-2010, 01:45 PM
Code Igniter Session problem - by El Forum - 11-18-2010, 02:06 PM
Code Igniter Session problem - by El Forum - 11-18-2010, 03:52 PM
Code Igniter Session problem - by El Forum - 01-18-2011, 04:40 AM
Code Igniter Session problem - by El Forum - 01-20-2011, 03:14 AM
Code Igniter Session problem - by El Forum - 04-30-2011, 07:05 PM
Code Igniter Session problem - by El Forum - 04-30-2011, 11:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB