Search code examples
codeigniterpyrocms

Tracking down mysterious session-ending bug


I'm using Codeigniter/PyroCMS which uses ion_auth.

I have my session stuff set for two hours. I'm using db sessions.

There is a gremlin somewhere that is booting the session after n minutes, sometimes. It is very random, and as such is hard impossible to reliably reproduce.

I've added log entries to the Session class (specifically sess_destroy) but that merely logs the session being destroyed, which I already knew.

I tried to add a debug_backtrace() into said log entry, but that aint jiving with teh codes (it doesn't get logged/it spits it onto the screen for a split second before the !session redirect).

Is there a good/proper way to track this down?

Thanks guise.


update: I added a few more log entries in Session.php Turns out the db session is being deleted/overwritten incorrectly. WHAI?


Solution

  • It appears to have been an issue with the server and resolve.conf mapping things incorrectly.