Re: strip out that &sid= jazz on request URLs?

amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected] (Andrew M. Bishop) 19 May 2006 18:57:21 +0100
Newsgroups gmane.network.wwwoffle.user
Message-ID <[email protected]>
Dan Jacobson <[email protected]> writes:

> How can I strip out the &sid=... ("session ID") of
> http://bla.com/bla/bla?q=nurd&sid=34KJAH_goes_on_and_on_DFLEWRQW12543324&bla=3
> on outgoing requests? Use Alias somehow? ModifyHTML and
> CensorHeader don't look promising.
> 
> Yes sometimes sid= might serve a purpose, but for me mostly it is just
> more cholesterol.

I think that in most cases where there is a session ID you will find
that you use up more bandwidth and time if you strip it out on every
request.

Since you didn't request a session ID the first time that you visited
the site it must be that the site has allocated you one.  This means
that you made a request to the site without a session ID and the site
redirected you to a page with a URL that has a session ID.  From that
point on each page that you request has the session ID, but only takes
one request.

If you strip out the session ID on every request you might either end
up with two requests for every page (one without and one with the
session ID) or an unending set of redirections from a page without a
session ID to a page with one.

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             amb-Uxr6IM1mbv2TY6FTCsQk+9Bc4/[email protected]
                                      http://www.gedanken.demon.co.uk/

WWWOFFLE users page:
        http://www.gedanken.demon.co.uk/wwwoffle/version-2.9/user.html