[ic] Removing session ID from the URL
pvinci at vinciguerra.com
Thu Jan 13 09:25:46 EST 2005
On Wed, 12 Jan 2005 10:56:25 -0800, Grant wrote
> > > Google gives you on to your page. This will send the url that is in
> > > the address bar of your browser to Google to determine what ads to
> > > show. Google will then match the URL (from your browser address bar)
> > > with what it's spider had previously found. The URL passed to Google
> > > has a sessionid in it. The URL that the spider found previously does
> > > not. Because they do not match Google will not show real ads.
> > >
> > > put on your page to filter out sessionids before you pass it to
> > > Google... this should fix the problem in my opinion.
> > >
> > Aha. Thanks for the elucidation -- it should be an easy fix
> > to do that:
> > url = url.replace(/\?.*/, '');
> > assuming that you don't have any CGI params in your AdSense URLs.
> Sorry, I should have done a better job explaining.
> URL in a variable. It's as simple as this:
> Even if it were passed in a variable, modifying the code would
> violate Google's Terms of Service, and from what I've read they're
> very strict about it.
> As for the Robot* directives, it sounds like it's still a good idea
> to use them, even with mv_no_session in place. I'm still trying to come
> up with data on what percentage of users reject session cookies these
> - Grant
> > Mike Heins
> interchange-users mailing list
> interchange-users at icdevgroup.org
My approach was as follows:
RewriteRule ^$ /cgi-bin/catalag/index.html?mv_tmp_session=1
RewriteRule ^/$ /cgi-bin/catalog/index.html?mv_tmp_session=1
RewriteRule ^/index\.html$ /cgi-bin/catalog/index.html?mv_tmp_session=1
Works like a charm for me.
More information about the interchange-users