I was concerned that visitors to our site were unable to shop due to disabled cookies (or whatever it is that would cause sessions not to work), so I enabled trans_sid.
Now I read that having this enabled can cause problems with search engines. I think this has to do with the first visit to the site resulting in the PHP session ID being written to a page's links, and only on subsequent loads (when it's determined that a cookie can be stored), will that session ID be removed from links. Search engines don't like session IDs in links, apparently.
I don't want to cause problems with search engines. I am happy to tell users they need to have cookies turned on if they want to shop. I'm just trying to figure out how to implement it.
I can see having a little check at the beginning of any account- or cart-related pages (that would require a login and/or session). Luckily, users can't add to the cart unless they're logged in (allows for storing the cart in the database).
Since I can't know what page users will be arriving FROM (they could even land directly on the "login" page), it seems I will have to seed a test cookie on every page, and on any pages with the cookie check I will have to do so AFTER the cookie "check" happens - otherwise the check will "see" the test cookie created on the same page load, and think everything is ok.
Hmm - this seems like a bit of a vicious circle - if the user arrives directly on any pages that do the cookie check, the cookie won't be there yet and so they'll be told they don't have cookies enabled.
How the heck do I go about this?