Re: How to make use of the billing token the right way???
| From: | Jason Barnett | Date: | Tue, 15 Feb 2005 14:56:12 +0000 |
| Subject: | Re: How to make use of the billing token the right way??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208728@lists.php.net to get a copy of this message | ||
Scott Fletcher wrote:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
I created the token via Javascript where the billing can be controlled better and to prevent the mixed up of the billing such as incorrect statements or calculation. I use the billing lock file for that purpose. I found that it doesn't alway work that way when the browser is refreshed or submitted, so I customized the Javascript to make it work better. That solve my problem but I found that some browsers acted too soon or too late with it's use of Javascript coding to unlocking the file, so the billing lock doesn't get released. So, I decided to do it all in PHP so the browsers' issues can be removed. I haven't decided how to best make use of the token via PHP, so I'm wondering if anyone of you can come up with one that is better than what I can come up with.Call me crazy... but what about just using a cookie / session mechanism for this? One browser, one cookie, your site. Heck they even generate tokens for you. :) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://www.php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc