My Codeigniter sessions have been dying a-lot lately. So I went and had a look at my database and I saw that all the sessions have ip_address 0.0.0.0 and some have useragent 0
So I checked my $CI->input->ip_address() function and saw that it always returns 0.0.0.0 event thought $_SERVER['REMOTE_ADDR'] returns an IP address that is valid in $CI->input->valid_ip($ip).
Does this have anything to do with my sessions dying?
I also read that sessions tend to die when the user-data reaches 4K. It might be part of it as I give every page an ID in the session which is never removed. I think its not the issue because 90% of the activity is via 1 page and AJAXs (I already added an AJAX session fix).
EDIT: I am using CI version 2.1.4.