Forum Moderators: coopster

Message Too Old, No Replies

Session Id's - want to remove them.

         

chetas

2:14 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



Hi, i have anb online store where the the links used to be:
www.example.co.uk/scategory.php?n=85 so after taking some advice i used httaccess and changed all the links from relative to direct so now the urls look like this:
www.example.co.uk/scategory/85

So i was expecting it to all be indexed- however when i did a google cache view, all the urls ended in
?PHPSESSID=d4dce1ca6a7f31add154315609556e3b
and google stopped indexing further down.

How do i remove the sessions w/o making sweeping changes to my cart system?

I've found this so far:
Code:
if (
(stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot')) ¦¦ (stristr($HTTP_SERVER_VARS'HTTP_USER_AGENT'] ,'slurp@inktomi.com;')) ¦¦
(stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'K2'))) {
//Don't start a session
}

but how do i add it and how do i include a list of all search bots and not just two...

Thanks for any help!

[edited by: pageoneresults at 2:59 pm (utc) on Mar. 11, 2004]
[edit reason] Examplified URI [/edit]

coopster

4:20 pm on Mar 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You may want to consider mod_rewrite again rather than PHP. Google WebmasterWorld for "apache session id" and it will turn up quite a few resources.

chetas

4:47 pm on Mar 11, 2004 (gmt 0)

10+ Year Member



search on apache session id didnt throw up anything concrete, can you point me to an article or something please?

Also wouldnt this topic be better off in ur .htaccess /apache section instead being moved to the php one...

Ta!

coopster

5:24 pm on Mar 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Will any of these address your issue?

mod_rewrite for removing session ids [webmasterworld.com]
Help: rewriterule for session id needed [webmasterworld.com]
How to check whether it's a spider or not via PHP? [webmasterworld.com]
How to deal with cart's session Id's [webmasterworld.com]