ID: 20449
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Session related
Operating System: redhat 7.3
PHP Version: 4.4.0-dev
New Comment:
I just noticed something in my session table.
a:2:{s:4:"cart";N;s:10:"gobackpage";N;}
What does N mean?
Previous Comments:
------------------------------------------------------------------------
[2002-11-17 22:56:14] [EMAIL PROTECTED]
Changing my delimiter has not helped either.
This is really hard to reproduce. But it is happening. I don't know
if adding a second server to share the load will help or not. While we
will be adding a second server tomorrow, we really shouldn't have to.
What should I do next?
Josh
------------------------------------------------------------------------
[2002-11-17 17:32:18] [EMAIL PROTECTED]
I set the gc_probability to 0. After 5 hours, I got another dozen
notifications that the cart failed. I even got a tech support
complaint from a customer.
My hunch is that the serializer is obliterating the array. One of the
recent things I started to do was to initialize $_SESSION["cart"] =
Array(); when they first enter the site. On the sessions that have
problems, the cart variable disappears. However, other session
variables still exist.
No where on the site do I attempt to destroy the session.
I'm going to change my | delimiter as I notice that the serializer uses
a | as a delimiter. I wonder if that could be it. (though, it works
most of the time)
I've made the other changes to the handler. I still see problems
though. Is there any particular user behaviour that could explain it?
I had someone suggest to me that a user double clicking the add to cart
button could do it. I don't see how though. Not only that, I've tried
clicking more than once myself and have never seen the problem.
Josh
------------------------------------------------------------------------
[2002-11-17 12:42:17] [EMAIL PROTECTED]
Ok. I will fix my handler using your suggestions. I'll get back to
you after a few hours of letting it work.
Josh
------------------------------------------------------------------------
[2002-11-17 12:40:32] [EMAIL PROTECTED]
I'm trying to provide as much as I can.
Here is a sample session from the dbase.
cart|a:1:{s:9:"161-00084";s:14:"White-Medium|1";}affiliatename|s:0:"";cartposted|s:10:"addProduct";
A quick thought. I use the | as a delimiter to seperate the color-size
and quantity. Would my delimiter potentially screw up the unserialize
or serialize functions?
For multiple products here is a sample session.
cart|a:2:{s:9:"117-00717";s:20:"Black-Small_Medium|1";s:9:"117-00875";s:15:"Yellow-Medium|1";}affiliatename|s:0:"";cartposted|s:10:"addProduct";
------------------------------------------------------------------------
[2002-11-17 12:36:34] [EMAIL PROTECTED]
Missed a couple of words in the above. "will randomly be deleted" I
meant to write.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20449
--
Edit this bug report at http://bugs.php.net/?id=20449&edit=1