On Tue, January 24, 2006 10:30 am, Barry wrote:
> I got a very funny problem.
> I wonder if anyone else encountered that.
>
> I start a Session at Shop startpage to keep some arrays and such.
> Stuff you need for the Cart and so. so fine so good.
>
> But when the customer goes through that Page some session vars just
> get
> NULL.
> Not the whole session dies. nah just a few vars O_o
>
> I dont understand that.
> It happens not often, but at least 2 times a week.
>
> I have no var overwriting them.
>
> I wonder if anyone has an issue for that.
>
> Btw its PHP 4.2-2 running on a Red Hat system under GNu linux.
>
>
> really no idea what that is >_>

Something as infrequent as that is very difficult to debug, because by
the time you start looking at the data, you've already forgotten what
the data was the last time the bug ocurred.

Start logging the error to a separate file or database table.

Log all the variables you THINK should have a value that are NULL.

Look for patterns in the variables.

Also consider logging all the other variables, and their values, to
see if there is a pattern.

Hopefully, gathering the data into an ordered format will make the bug
more clear.

You should also go ahead and time-stamp it, so you can refine the 2
times per week, and possibly log successful page-hits so you have some
idea of the percentage of error.

Possibly log load as well, in some manner -- count # of active
sessions, or OS "load" on the box, or...

Perhaps it only happens under very heavy load?  Or does it simply
increase linearly with load, but still happens under light load?

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to