Re: FN-FORUM: Odd cookie problem
date posted 11th January 2007 14:00
Basket works ok for me, but why do that redirect? It would be simpler
and more elegant to do your update by calling the relevant functions in
line with the page. Perhaps some people have security software than
blocks redirects?
Also this means that when you click through to the payment page with
blank details, protx throws an error but you can't get back to update
it, because the back button takes you to another blank redirect that
shunts you straight back to the payment page with the error - game over,
no sale.
Otherwise I love the design of the site. Soooo green! It looks lovely
All the best,
Steve
Nick Hill wrote:
>
> Hi all - wonder if anyone can shed light on this?
>
> I'm having problems with a website I've done:
> http://www.perfectskindirect.co.uk/. Specifically, I'm not having any
> problems with it at all, but the client has said that people have been
> emailing her (a couple of times a day recently) to complain they can't
> add anything to the basket.
>
> I've tested it successfully on IE6, IE7, Safari, Opera 9 and Firefox
> 1.5 (Win/Mac); friends of mine have also confirmed it works on Vista
> (IE7/FF) and FF2 on XP. It even (just about) works on IE5.2 on the
> Mac. The only problem I found was when testing it with a copy of IE6
> that had been installed after IE7 - clicking the button does nothing,
> for some reason (cd-wow and ebuyer also do nothing, strangely). When
> testing it on a machine which only had IE6 on it, it works. I'm not
> too worried about this scenario, since presumably anyone with this
> setup has done it deliberately, and will have IE7 to hand anyway.
>
> What should happen is when you click "Add" on a product it briefly
> takes you to a blank "add to basket" page, which updates the cookies
> then fires you back where you came from (Ajax would have been nice,
> but was a bit of a tall order for this project).
>
> I can't figure out what it might be that these customers are doing,
> and they're not able or willing to detail what OS/browser they're
> using, although I think they're on Windows. I've been through the logs
> and most seem to be using IE6, IE7, Firefox or Safari. Some (around
> 3%) use AOL 9 though, which I haven't got - if you have this would you
> mind giving it a go?
>
> For those who are still reading, the PHP code that sets the cookie is
>
> setcookie('psdbasket', $r, time() + (60*60*24*365), "/",
> ".perfectskindirect.co.uk");
>
> where $r is a semicolon-delimited list of product ID numbers.
>
> If anyone can "break" this (steady on, now) and tell me what they did,
> I'd be hugely grateful!
>
> Cheers
>
> Nick
>