[PHP] Shopping Carts
Hello, I am making a shopping cart. I am wondering on how I should separate each user. I though the I.P. would be good but there can be a couple people on one I.P. so if someone is sharing an I.P. it will mess things up.. Anyone got a better way to do it? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Shopping Carts
I use MyCart for the sites I've built around Shopping Carts. In MyCart there is some combination of ip address and date or time (I haven't looked at the source recently) concatenated together. You might want to take a look at MyCart for ideas...or as a solution to avoid having to build a cart from scratch. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, January 10, 2000 10:18 AM To: PHP User Group Subject: [PHP] Shopping Carts Hello, I am making a shopping cart. I am wondering on how I should separate each user. I though the I.P. would be good but there can be a couple people on one I.P. so if someone is sharing an I.P. it will mess things up.. Anyone got a better way to do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shopping Carts
I use sessions combinded with utc function mtime() { $mtime = microtime(); $mtime = ereg_replace('\.', '', $mtime); $mtime = explode(' ', $mtime); $mtime = $mtime[1] . $mtime[0]; return($mtime); } will ALLWAYS return a unique number, store this number in a session, each user gets assigned a sessionID now each user has their own number, 100% unique to themselves. this is how I seperate my users. Ive built quite a few cart systems with this aproch. I store the cart right in the sessions, but I have also set systems up where the cart is right in the db. I did the later because a client wanted to have a way to see the % of users that put things in their cart and never purchased, and % of products purchased to % abandonded in their cart. Your right on the IP system, here in the office I share the same IP with 12 people throught a NAT. I dont know if you need to use an IP at all, if this is just for a cart... then big deal, some script kiddy could try 36^32 possible combinations of a PHPSESSID to try and hijack their cart ! haha. maybe for a something a little more secure. Chris Lee Mediawaveonline.com "Brandon Orther" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I am making a shopping cart. I am wondering on how I should separate each > user. I though the I.P. would be good but there can be a couple people on > one I.P. so if someone is sharing an I.P. it will mess things up.. Anyone > got a better way to do it? > > Thank you, > > > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shopping Carts
hi Brandon, we use php's session handing functions to set cookies, they are obviously hashed, etc before the values are sent. as part of the authentication system, we check to see that the user's client matches the last access with that session id, if not, we request a sign in. if you're not talking about authenticated pages, (which you probably aren't for a basic shopping cart app), we handle all of that stuff transparently. _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] (Brandon Orther) > Newsgroups: php.general > Date: 10 Jan 2001 08:12:07 -0800 > Subject: [PHP] Shopping Carts > > Hello, > > I am making a shopping cart. I am wondering on how I should separate each > user. I though the I.P. would be good but there can be a couple people on > one I.P. so if someone is sharing an I.P. it will mess things up.. Anyone > got a better way to do it? > > Thank you, > > > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Shopping Carts ??
Could anyone point me in the direction of some PHP shopping cart scripts? Thanks, Christopher Raymond -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Shopping Carts and Sessions
Hi, I have been playing around trying to build a 'perfect' shopping cart. A brief as possible feature list: database driven, fully indexable by search engines, and can operate without cookies. I decided to use Apache's mod_rewrite to change a standard looking URL into something php can use easily. ex: http://www.mydomain.com/produce/carrots/spec1/94d0bb50cd.html would become http://www.mydomain.com/index.php?dept=produce&product=carrots&; specials=spec1&PHPSESSID=94d0bb50cd Now for the problem, when a search engine spiders this it will be including the session id. Unless I do some kind of checking, I could end up with multiple users having the same session id -- if they click into the site from a search engine or a bookmark. The best solution I have come up with is to add a timestamp variable inside the URL. If the timestamp is more than 1 hour old -- reassign a new timestamp and session id then build the page as specified by the other variables passed to the script. I was wondering if anyone knows of a more elegant solution for this problem. thanks, don
Re: [PHP] PHP Shopping Carts ??
In a message dated 8/14/01 3:23:54 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: > Could anyone point me in the direction of some PHP shopping cart scripts? > > > Thanks, > > Christopher Raymond > I'm sure they have one: http://hotscripts.com/PHP/Scripts_and_Programs/ Pat
Re: [PHP] PHP Shopping Carts ??
www.fishcart.org At 02:22 PM 8/14/01 -0500, Christopher Raymond wrote: >Could anyone point me in the direction of some PHP shopping cart scripts? > > >Thanks, > >Christopher Raymond > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Shopping Carts ??
http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/Shopping_Carts/ On Tuesday 14 August 2001 12:39, you wrote: > In a message dated 8/14/01 3:23:54 PM Eastern Daylight Time, > > [EMAIL PROTECTED] writes: > > Could anyone point me in the direction of some PHP shopping cart scripts? > > > > > > Thanks, > > > > Christopher Raymond > > I'm sure they have one: > http://hotscripts.com/PHP/Scripts_and_Programs/ > > Pat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP Shopping Carts ??
http://l-i-e.com/compare/ -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Christopher Raymond <[EMAIL PROTECTED]> Newsgroups: php.general To: PHP List <[EMAIL PROTECTED]> Sent: Tuesday, August 14, 2001 2:22 PM Subject: PHP Shopping Carts ?? > > > > Could anyone point me in the direction of some PHP shopping cart scripts? > > > Thanks, > > Christopher Raymond > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shopping Carts and Sessions
In a message dated 3/16/01 9:39:16 AM Eastern Standard Time, [EMAIL PROTECTED] writes: > I thought Search engines couldnt spyder dynamic pages such as > "1.php?foo=bar" > True - but with the magic of Apache's mod_rewrite -- you can make a URL appear to a browser as: http://www.yourdomain.com/bar -- but on your server, it can be rewritten as: http://www.yourdomain.com/1.php?foo=bar. mod_rewrite is extremely cool. you can read more about it at: http://httpd.apache.org/docs/mod/mod_rewrite.html don
Re: [PHP] Shopping Carts and Sessions
or you can use Apache to ForceType bar to use PHP. then just write a generic URL parsing script and you're done. if you want it for all of your URL's, make DocumentRoot a PHP script. you might tricky problems with images and other non-script files, but that's ok because you can just check for the file extensions, echo he mie tpye and readfile() it. -aaron At 1:15 PM -0500 3/16/01, [EMAIL PROTECTED] wrote: >In a message dated 3/16/01 9:39:16 AM Eastern Standard Time, >[EMAIL PROTECTED] writes: > > >> I thought Search engines couldnt spyder dynamic pages such as >> "1.php?foo=bar" >> > >True - but with the magic of Apache's mod_rewrite -- you can make a URL >appear to a browser as: http://www.yourdomain.com/bar -- but on your server, >it can be rewritten as: http://www.yourdomain.com/1.php?foo=bar. > >mod_rewrite is extremely cool. you can read more about it at: >http://httpd.apache.org/docs/mod/mod_rewrite.html > >don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shopping Carts and Sessions
Can this be used via .htaccess in a shared hosting situation? - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 16, 2001 10:15 AM Subject: Re: [PHP] Shopping Carts and Sessions > In a message dated 3/16/01 9:39:16 AM Eastern Standard Time, > [EMAIL PROTECTED] writes: > > > > I thought Search engines couldnt spyder dynamic pages such as > > "1.php?foo=bar" > > > > True - but with the magic of Apache's mod_rewrite -- you can make a URL > appear to a browser as: http://www.yourdomain.com/bar -- but on your server, > it can be rewritten as: http://www.yourdomain.com/1.php?foo=bar. > > mod_rewrite is extremely cool. you can read more about it at: > http://httpd.apache.org/docs/mod/mod_rewrite.html > > don > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shopping Carts and Sessions
In a message dated 3/16/01 2:02:07 PM Eastern Standard Time, [EMAIL PROTECTED] writes: > Can this be used via .htaccess in a shared hosting situation? > I believe it can -- never done it personally though... don