Author Clark on 02-24-2002 at 23:10 (EST)
I'm having a bugger of a time getting this thing to pass a cookie. At least I think that's the problem. I can't get anything to show up in an affiliates report so I'm assuming that's the problem.
The site doesn't have its own security cert so I'm using cookies.pl. It redirects but doesn't pass a cookie. I then did the image thing as suggested in the docs. No cookie. Here is a URL of a test page:
You will be able to follow it from there.
https://www.securelytransact.com/~allpowerseminar/cgi-bin/ushop.pl?command=report will get you to the affilate report page with ID=ap and Password=test.
Anything else I'm leaving out??? I'll send diagnostics if you need 'em.
|Table Of Contents|
| RE: Affiliate cookies.pl Bill Weiner, 2002-02-25 05:20:38 (1)|
| awww crap... Clark, 2002-02-25 18:03:19 (2)|
| link to page Clark, 2002-02-25 18:08:40 (3)|
| fixed Clark, 2002-02-25 18:29:46 (4)|
| A new cookie question Clark, 2002-02-26 14:46:29 (5)|
| RE: A new cookie question Bill Weiner, 2002-02-28 22:28:08 (6)|
| Cookies revisited Clark, 2002-03-19 14:59:50 (7)|
| RE: Cookies revisited Bill Weiner, 2002-03-19 22:12:17 (8)|
| hmmmm... Clark, 2002-03-20 04:02:55 (9)|
| RE: hmmmm... Bill Weiner, 2002-03-20 07:49:25 (10)|
| RE: hmmmm... Clark, 2002-03-20 15:54:30 (11)|
| RE: hmmmm... Bill Weiner, 2002-03-20 21:50:31 (12)|
| hmmmmm... :-) Clark, 2002-03-21 03:52:49 (13)|
| RE: hmmmmm... :-) Bill Weiner, 2002-03-21 06:17:44 (14)|
|Messages In This Discussion|
| 2. awww crap...|
Author Clark on 02-25-2002 at 18:03 (EST)
|So I've made all the moves to get my store onto my public server. What a lot of link housekeeping... |
But now the store doesn't work. The first time I call the secure server is from the ShopOrderButton as suggested. But the store hangs on the "Please Wait..." page. I'm still waiting. The link to the script is to the same script that worked great when the whole store was on the secure server. And the script obviously starts as it gets me as far as the "Please Wait...". What am I missing? The ushop.pl script works great as the admin panel... just not to process orders.
Frustrated with something that was working...
| 4. fixed|
Author Clark on 02-25-2002 at 18:29 (EST)
|There was an error on my display_cart.html page. Don't ask me how it got there. Or why it was working before with this same exact code. But downloading a fresh one fixed it.
| 5. A new cookie question|
Author Clark on 02-26-2002 at 14:46 (EST)
|I've got the cookies set using the long URL with redirect method. The cart even gets them. That's all good.|
I'm just bugged by that superlongandhokielookingURL that the redirect method makes me use/give out. Can I use the IMG SRC method to avoid that? I've placed this "image" on my page but it doesn't seem to set a cookie:
IMG SRC="http://www.allpowerseminar.com/cgi-bin/cookies.pl?id=ap" BORDER=0 WIDTH=1 HEIGHT=1
So my questions:
-Should this work?
-Can I set a cookie this way (by the visitor just visiting the page this "image" is on) or do they have to actually click on a link to set the cookie?
-Should I just get over the long ugly URL?
| 7. Cookies revisited|
Author Clark on 03-19-2002 at 14:59 (EST)
|OK... I'm back to finally get this thing working like I want. Procrastination is grand, ain't it?|
Bill, I've read through that page on cookies (http://www.uburst.com/uShop/cookies.html) dozens of times. And I'm still not sure if I can accomplish what I want to do.
I am wanting to use the affiliate feature to track ads and the source of visitors. I will have a different custom page for each source.
I would like a cookie to be set just by a visitor loading my page. Not when he links out of my page. (I lose people that type in a new URL or close their browsers this way.) I can't control the link to my page. And I don't want to make every link out of the page one that goes through the cookies.pl script. Just for simplicity and organizational clarity on my end. It's a little clunky now. And I lose track of some visitors as noted above.
Can I use the image solution (#7 at http://www.uburst.com/uShop/cookies.html) WITHOUT the link part of it? (I want to put this image on MY page so there would be no need for a link to my page at that point)
What can I do to have a cookie set just by someone loading my page?
Tech note: I DON'T have my own secure certificate.
Thanks for your excellent help,
| 11. RE: hmmmm...|
Author Clark on 03-20-2002 at 15:54 (EST)
|OK... I'm at my wits end now. Now even the link/redirect method is not setting a cookie. AAAAaaaaarrrrrrrgggggghhhhhh...|
So here's what I know:
-The cookies.pl script IS redirecting
-No cookies are being set
-This DID work before (using the link redirect method)
-Perl scripts ARE working on this server (as evidenced by http://www.allpowerseminar.com/cgi-bin/cgitest.pl and the fact that cookies.pl is redirecting)
What I've done:
-re-uploaded cookies.pl (ASCII)
-Path to Perl is obviously correct since it's redirecting.
I've also set up a cookie test page again. This has both cookie setting methods on it:
Neither of these methods is now working. Test them for yourself. No cookies show up on your machine, right? Look at the source code and see what you think.
So what did I manage to screw up? I really want that image method to work. It saves me a ton of link maintenance.
Thanks for your help,
| 12. RE: hmmmm...|
Author Bill Weiner on 03-20-2002 at 21:50 (EST)
|I just tried out your test page:|
And BOTH methods set cookies.
I also saw that the "Store" link on your site also set the affiliate cookie.
So that's 3 different links that are setting the affiliate cookie on your site.
(I even placed a test order...so you should receive an order for affiliate "ap".)
You can verify the cookies are being set yourself by:
1) Configuring your browser to "Warn before accepting cookies"... and you will see each place the "affiliate" cookie is set.
2) Viewing the source of order form pages and you will see a hidden "id" variable being POSTed throughout the order process.
| 13. hmmmmm... :-)|
Author Clark on 03-21-2002 at 03:52 (EST)
|Bill, you are absolutely right. I think my problems must have been on my browser because I had set it to warn of cookies earlier when I was troubleshooting and got nothing. I did it again now and still nothing. So I went back to troubleshooting 101 and rebooted. And it now works. I feel like an idiot. Thanks for all your help. It is greatly appreciated.
| 14. RE: hmmmmm... :-)|
Author Bill Weiner on 03-21-2002 at 06:17 (EST)
|Hey, no problem! Glad you got it working!