The setcookie function for passing address info from a webform to Ubercart works great if the webform is on a single page. But if you divide your form into two pages, the second page deletes and expires the cookie. Firebug shows this:
customer[first_name]=deleted; expires=Sat, 17-Oct-2009 02:05:36 GMT; path=/

Any thoughts on how I can get the cookie to pass through the second page to the shopping cart? I appreciate your help.

Comments

brightbold’s picture

Title: Cookies don't work with multi-page webform » Billing pane showing cached data with multi-page webform
Category: bug » support
Status: Active » Fixed

I think what originally appeared to be the cookies not working was actually a cache problem on the site. Before it was showing old data from a previous submission of the form (even in browsers and on computers I was sure had never submitted the form before), but I cleared the cache and now the cookies work as expected.

Sorry if I am being a menace in your issue queue, creating issues that turn out to be user error or something that only affects me. I always try to investigate thoroughly before creating an issue, but with respect to your module that hasn't worked out so well. Sorry.

brightbold’s picture

Status: Fixed » Closed (fixed)
brightbold’s picture

Status: Closed (fixed) » Active

Hmm. I forgot I had filed this issue last year but experienced the same problems yesterday. My clients were testing the form in their office and people were pulling up other people's webform data on different computers — I can only guess that the results were getting cached based on IP address? And I could no longer get the cookies to pass through the second page of the form, even after clearing the cache and even disabling caching altogether. I reported that issue in #932580: Webform not passing address values to Ubercart.

To my knowledge, no one has reproduced the showing someone else's submission data problem since I cleared the cache, but I thought I should report it here in case someone else has this problem, or has thoughts on solving it.