| | |
Floating IP Address in AOL
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Many of you may aware that AOL using floating IP address to manage their internet connection. When I develop my shopping cart, I used IP address as one of the variables to identify user (other variables are datetime and url) and its shopping cart content. It was alright until someone using AOL to browser the site. I'm forced to use only two parts of the 4-part IP address to avoid any error due to floating IP. The code is so far running ok, however, I'm not convience it will stay ok forever as floating IP can change all four parts of the IP address. Can anyone suggest a better way?
Note: I'm not using session nor cookies as some people disabled these beautiful functions.
Note: I'm not using session nor cookies as some people disabled these beautiful functions.
Ecommerce-Web-Store.com Building Your e-Business.
Without cookies or sessions you've run out of options. They are really the only other options you have.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
I guess you could make the users reauthenticate on each page.
Try your best to get those functions reenabled, for if you make a "shopping" site inconvienent in any way, users will tend to find another one that's not so inconvienent. (I'm echoing usability expert Jakob Nielsen's thoughts -- http://www.useit.com/)
Try your best to get those functions reenabled, for if you make a "shopping" site inconvienent in any way, users will tend to find another one that's not so inconvienent. (I'm echoing usability expert Jakob Nielsen's thoughts -- http://www.useit.com/)
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
•
•
•
•
Originally Posted by Puckdropper
I guess you could make the users reauthenticate on each page.
Ecommerce-Web-Store.com Building Your e-Business.
•
•
Join Date: Jul 2006
Posts: 14
Reputation:
Solved Threads: 0
Hello,
If you consider that VBulletin software must also be aware of this, they have come up with a solution to that very problem. It is a combination of cookies, license key and basic user details stored into a cookie for page to page retrieval.
If you do not use cookies you may have run out of alternative options.. I think.
If you consider that VBulletin software must also be aware of this, they have come up with a solution to that very problem. It is a combination of cookies, license key and basic user details stored into a cookie for page to page retrieval.
If you do not use cookies you may have run out of alternative options.. I think.
•
•
•
•
Originally Posted by zippee
Many of you may aware that AOL using floating IP address to manage their internet connection. When I develop my shopping cart, I used IP address as one of the variables to identify user (other variables are datetime and url) and its shopping cart content. It was alright until someone using AOL to browser the site. I'm forced to use only two parts of the 4-part IP address to avoid any error due to floating IP. The code is so far running ok, however, I'm not convience it will stay ok forever as floating IP can change all four parts of the IP address. Can anyone suggest a better way?
Note: I'm not using session nor cookies as some people disabled these beautiful functions.
http://us3.php.net/session
If this is disabled on your PHP you can enable it in php.ini by setting session.use_only_cookies to 0.
If you dont have access to php.ini you can set this in either .htaccess or within your php script.
To do this with .htaccess use add this line:
php_value session.use_only_cookies 0
In your php script use:
[PHP]ini_set("session.use_only_cookies", "0");[/PHP]
Url based sessions should always work since they dont require cookies but instead append the sessionid to the url.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
I disabled session.use_only_cookies as I come across a few articles that saying the PHPSESSID is not search engine friendly?? I think this spark the idea of having my own string attached to the URL and recapture it on every page using $_GET function :cheesy:
Last edited by zippee; Jul 20th, 2006 at 9:45 am.
Ecommerce-Web-Store.com Building Your e-Business.
Yes, that may be true about PHPSESSID, however, you can change the value of PHPSESSID to something else by changing session.name in php.ini or use .htaccess or ini_set().
I dont think changing the name of PHPSESSID would do any good though as it is the long hash value of the session id that is meaningless to search engines.
The googlebot is quite a bit smarter now that it was a year ago. So the articles on the web are always outdated as far as SEO. You'll have to test that yourself to make sure.
The googlebot should not reach your pages that have sessions implemented anyway. Googlebot wont be buying anything from your e-commerce store. The session enhanced part of your site should be for buyers only if not just humans. You really only need the session after a user has purchased an item. If googlebot purchases an item and checks out, I think that would be a first.
I dont think changing the name of PHPSESSID would do any good though as it is the long hash value of the session id that is meaningless to search engines.
The googlebot is quite a bit smarter now that it was a year ago. So the articles on the web are always outdated as far as SEO. You'll have to test that yourself to make sure.
The googlebot should not reach your pages that have sessions implemented anyway. Googlebot wont be buying anything from your e-commerce store. The session enhanced part of your site should be for buyers only if not just humans. You really only need the session after a user has purchased an item. If googlebot purchases an item and checks out, I think that would be a first.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
As someone whose primary business is training Web development teams in SEO methods, my advice is to NEVER allow session IDs in URLs. Take my word for it, Google is NOT smart enough to recognize a session ID. I also run a Web directory and I see dozens of 50-page sites each week with thousands of URLs in Google's index--all of which are banished to Supplemental Results. Anything that alters a URL can create duplicate page URLs and duplicate content penalties with search engines. Session IDs create duplicate URLs that do create problems.
Google's Webmaster Guidelines specifically cover this issue.
"Allow search bots to crawl your sites without session IDs or arguments that track their path through the site. These techniques are useful for tracking individual user behavior, but the access pattern of bots is entirely different. Using these techniques may result in incomplete indexing of your site, as bots may not be able to eliminate URLs that look different but actually point to the same page."
http://www.google.com/support/webmas...y?answer=35769
There are two workarounds for this if you must use session IDs in URLs:
1. Use PHP code to detect search engine spiders and do not initiate a session when a spider requests a page. You can easily detect a spider using $_SERVER['HTTP_USER_AGENT'].
2. Do not initiate a session until an item is placed in the shopping cart (as digital-ether mentioned). Because spiders cannot place items in a properly designed shopping cart (never use hyperlinks to place items in a cart), the session ID never displays in the URLs when spiders are present.
Hope this helps. :mrgreen:
BTW, almost every Web developer who has ever created an e-commerce site has had to deal with AOL's abundance of deficiencies. That's what happens when you do not follow Internet standards.
Google's Webmaster Guidelines specifically cover this issue.
"Allow search bots to crawl your sites without session IDs or arguments that track their path through the site. These techniques are useful for tracking individual user behavior, but the access pattern of bots is entirely different. Using these techniques may result in incomplete indexing of your site, as bots may not be able to eliminate URLs that look different but actually point to the same page."
http://www.google.com/support/webmas...y?answer=35769
There are two workarounds for this if you must use session IDs in URLs:
1. Use PHP code to detect search engine spiders and do not initiate a session when a spider requests a page. You can easily detect a spider using $_SERVER['HTTP_USER_AGENT'].
2. Do not initiate a session until an item is placed in the shopping cart (as digital-ether mentioned). Because spiders cannot place items in a properly designed shopping cart (never use hyperlinks to place items in a cart), the session ID never displays in the URLs when spiders are present.
Hope this helps. :mrgreen:
BTW, almost every Web developer who has ever created an e-commerce site has had to deal with AOL's abundance of deficiencies. That's what happens when you do not follow Internet standards.
Last edited by TopDogger; Jul 20th, 2006 at 6:32 pm.
Wow.. awesome post topdogger!
Advice to everyone interested: Take a bit of time to look at that link posted by topdogger: http://www.google.com/support/webmas...y?answer=35769
It really is helpful if you're interested in SEO for google. Wish I'd read that 2 years ago instead of the bullcrap newsletters I get in my junk mail. urrrrg.
Advice to everyone interested: Take a bit of time to look at that link posted by topdogger: http://www.google.com/support/webmas...y?answer=35769
It really is helpful if you're interested in SEO for google. Wish I'd read that 2 years ago instead of the bullcrap newsletters I get in my junk mail. urrrrg.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Other Threads in the PHP Forum
- Previous Thread: Program-contolled delay
- Next Thread: Getting info from an XML file
| Thread Tools | Search this Thread |
.htaccess action ajax apache api array auto beginner binary bounce broken cakephp checkbox class cms code cron curl database date display dynamic echo email error errorlog file files folder form format forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla limit link login loop mail malfunctioning masterthesis menu mlm mod_rewrite multiple mysql nodes oop paypal pdf php popup problem query radio ram random recursion reference regex remote return script search server sessions sms soap source space sql syntax system table tutorial unset update upload url validation validator variable video web websitecontactform xml youtube






