According to Gabriele Bartolini:
> Il mer, 2002-08-28 alle 12:12, Marco Umgeher ha scritto:
> > each and when i search afterwards there are many files duplicated only=20
> > with different ?PHPSESSIONID=3DUZ57tz54t54tzt5z7t45t7z5t  at the end.
> 
> IMHO, this is due to the fact that htdig doesn't support cookies in the
> 3.1.x branch (only in the 3.2.x branch) and PHP scripts make use of
> sessions. Every time you ask for a resource which uses sessions, it's
> like you are always beginning a new session, because you don't carry
> with you the previous SID.
> 
> Unfortunately I have not yet faced to this kind of problem, but I think
> it is worth giving a look at this URL anyway:=20
> 
> http://www.php.net/manual/en/printwn/ref.session.php#session.configuration
> 
> and in particular to the configure option called enable-trans-sid.
> 
> > i read something about the bad_querystr in the manual. but can i enter=20
> > "PHPSESSIONID=3D" there????
> 
> I think enable-trans-sid was used during compilation, because scripts
> are trying to send you the SESSIONID which *should* be propagated along
> different HTTP requests (since 4.2.0 it is by default).
> 
> One thing you should not do at all is to put this in the query_string.
> You may want to hide the session ID to the searcher, by using the
> search_rewrite_rules attribute.

Actually, for getting rid of session IDs in query strings like this,
you should use url_rewrite_rules, not search_rewrite_rules.  The latter
is applied at search time, so it won't do anything to avoid duplicate
entries in the database.  url_rewrite_rules is applied at indexing time,
so it will strip off whatever you tell it to, even before htdig fetches
the URL.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to