944,047 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 5023
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 12th, 2006
0

Floating IP Address in AOL

Expand Post »
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.
Reputation Points: 10
Solved Threads: 7
Posting Whiz in Training
zippee is offline Offline
294 posts
since Jan 2005
Jul 12th, 2006
0

Re: Floating IP Address in AOL

Without cookies or sessions you've run out of options. They are really the only other options you have.
Moderator
Reputation Points: 161
Solved Threads: 38
He's No Good To Me Dead
stymiee is offline Offline
1,422 posts
since May 2006
Jul 13th, 2006
0

Re: Floating IP Address in AOL

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/)
Reputation Points: 23
Solved Threads: 23
Posting Pro in Training
Puckdropper is offline Offline
494 posts
since Jul 2004
Jul 15th, 2006
0

Re: Floating IP Address in AOL

Quote originally posted by Puckdropper ...
I guess you could make the users reauthenticate on each page.
I do not use users authentication as my website (should be 'service' to be more precise) provide shopping cart facility to hundreds of websites, which do not require user to login etc.
Reputation Points: 10
Solved Threads: 7
Posting Whiz in Training
zippee is offline Offline
294 posts
since Jan 2005
Jul 20th, 2006
0

Re: Floating IP Address in AOL

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
psalzmann is offline Offline
14 posts
since Jul 2006
Jul 20th, 2006
0

Re: Floating IP Address in AOL

Quote 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.
Though not as secure as a cookie based session (Yes sessions are actually just cookies) PHP has the option of using a url based session.
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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Jul 20th, 2006
0

Re: Floating IP Address in AOL

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.
Reputation Points: 10
Solved Threads: 7
Posting Whiz in Training
zippee is offline Offline
294 posts
since Jan 2005
Jul 20th, 2006
0

Re: Floating IP Address in AOL

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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Jul 20th, 2006
0

Re: Floating IP Address in AOL

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.
Last edited by TopDogger; Jul 20th, 2006 at 6:32 pm.
Reputation Points: 15
Solved Threads: 5
Junior Poster in Training
TopDogger is offline Offline
87 posts
since Aug 2005
Jul 20th, 2006
0

Re: Floating IP Address in AOL

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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Program-contolled delay
Next Thread in PHP Forum Timeline: Getting info from an XML file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC