Forum Moderators: coopster

Message Too Old, No Replies

PHP and SEO

How to deal with php sessions and cookies for SEO

         

qscally1

9:06 am on Aug 18, 2005 (gmt 0)



Can anyone direct me to some good articles on how best to change an existing site which has php sessions. It currently is not indexed by Google / MSN and Yahoo because of that. Thanks

jetboy

9:44 am on Aug 18, 2005 (gmt 0)

10+ Year Member



I believe that by default, PHP uses cookies for sessions. When cookies aren't support it falls back to a URL parameter. You can force PHP to use cookies or nothing by setting session.use_only_cookies to 1 in php.ini.

Do make sure that spiders are seeing a session variable first though. Emulate a spider with a header viewer to be certain.

PeteM

12:14 pm on Aug 18, 2005 (gmt 0)

10+ Year Member



Search the phpbb.com (which uses sessions) support forums for 'google' and you should get some good ideas.