Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

VoucherTrader.co.uk Blog:
A Further Problem With PHP Session IDs and Google
Jan 12, 2006 @ 12:48:32

On vouchertrader.co.uk today, there's this look at some more issues that can be caused by session IDs with the indexing that Google performs.

While search for the VoucherTrader site in Google I noticed that the description for some pages was coming up as a PHP error about sessions. I actually thought I'd fixed this problem before by preventing PHP from creating sessions when the browsing user's user agent was the Googlebot. Unfortunately I was wrong...

Come to find out, he figured out that, at the time the GoogleBot was coming through, the PHP install wasn't making a session for it. For a fix, he threw in a check to ensure that the user, based on the HTTP_USER_AGENT value, would start the session correctly. The code is included in the post...

tagged: session ID google indexing session_start HTTP_USER_AGENT session ID google indexing session_start HTTP_USER_AGENT

Link:

VoucherTrader.co.uk Blog:
A Further Problem With PHP Session IDs and Google
Jan 12, 2006 @ 12:48:32

On vouchertrader.co.uk today, there's this look at some more issues that can be caused by session IDs with the indexing that Google performs.

While search for the VoucherTrader site in Google I noticed that the description for some pages was coming up as a PHP error about sessions. I actually thought I'd fixed this problem before by preventing PHP from creating sessions when the browsing user's user agent was the Googlebot. Unfortunately I was wrong...

Come to find out, he figured out that, at the time the GoogleBot was coming through, the PHP install wasn't making a session for it. For a fix, he threw in a check to ensure that the user, based on the HTTP_USER_AGENT value, would start the session correctly. The code is included in the post...

tagged: session ID google indexing session_start HTTP_USER_AGENT session ID google indexing session_start HTTP_USER_AGENT

Link:


Trending Topics: