Posted by R. Rajesh Jeba Anbiah on 04/12/06 07:37
fletch wrote:
> Ithink the best solutioin to this problem is to detect googlebot (+ any
> other bots, yahoo slurp, msnbot..) and then set the session id to a
> known value using session_id() that way you always have the session
> when you expect it regardless of the current user-agent. Works a treat
> for me.
This is cool. I was thinking about similar hack after posting that
as previous did add SID to the links on the page (will be a problem if
users visit via cached pages).
So, I'm thinking of turning off trans sid for crawler and keeping
the session id in server and setting it via session_id()
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|