homepage Welcome to WebmasterWorld Guest from 54.197.147.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / WebmasterWorld / Community Building and User Generated Content
Forum Library, Charter, Moderators: rogerd

Community Building and User Generated Content Forum

    
Session ID
how to get rid of it?
jalma




msg:1562602
 6:05 pm on May 27, 2005 (gmt 0)

I use Invision Power Board 1.3.The search bots don't seems to crawl beyond the topic title - i.e. they can't index the posts - because of the session ID. Does anyone know how to remove the session ID from the URL?

 

rogerd




msg:1562603
 2:07 am on May 30, 2005 (gmt 0)

Welcome to WebmasterWorld, jalma. For detailed technical questions about a particular type of software, sometimes that software developer's own forum is the best place. We've had some great Q&A here, though. Anyone?

jalma




msg:1562604
 7:49 pm on May 30, 2005 (gmt 0)

Thanks Roger - I've tried that. IPB was part of the package from my hosting company and therefore I cannot sign up to IPBís own technical forum. The hosting company has also been unhelpful. Iíve tried other forums Ė no one comes up with the answer. Yet there must be a way of removing the long session IDs because I see it being done in many forums using IPB.The question is how?

krt1




msg:1562605
 11:27 pm on May 30, 2005 (gmt 0)

Put this at the top of the global header file
ini_set('session.use_trans_sid',false);
It means to force use of a transparent SID
There is also a .htaccess alternative done by putting
php_flag session.use_trans_sid off
(on a seperate line)

jalma




msg:1562606
 9:26 pm on May 31, 2005 (gmt 0)

Thanks.I've tried the htaccess approach - it didn't seem to work.

I also tried removing all session ids but then no one could log-in. I wrote a hack to remove the SID until people log-in. It seems to work - but itís messy and Iím sure itís not the best way of doing it.

rogerd




msg:1562607
 11:25 pm on May 31, 2005 (gmt 0)

I think the hack for phpBB that kills the session ID for spiders puts some logic in that tests for appropriate User Agent strings. If it finds "googlebot" in the string, for example, it doesn't use a session ID. (You phpBB pros can correct me if my simplistic explanation isn't quite right. ;))

woodrow222




msg:1562608
 6:32 pm on Jun 26, 2005 (gmt 0)

Put this at the top of the global header file
ini_set('session.use_trans_sid',false);
It means to force use of a transparent SID

Thank you! That has indeed done the trick!

woodrow222




msg:1562609
 6:57 pm on Jun 26, 2005 (gmt 0)

Uh, i spoke to soon. It works, but it is also showing that text on the top of my board:

ini_set('session.use_trans_sid',false);

Where exactly do i put this into this area?

<!--ipb.javascript.start-->
<script type="text/javascript">
<!--
var ipb_var_st = "{ipb.input['st']}";
var ipb_lang_tpl_q1 = "{ipb.lang['tpl_q1']}";
var ipb_var_s = "{ipb.session_id}";
var ipb_var_phpext = "{ipb.vars['php_ext']}";
var ipb_var_base_url = "{ipb.script_url}";
var ipb_input_f = "{ipb.input['f']}";
var ipb_input_t = "{ipb.input['t']}";
var ipb_input_p = "{ipb.input['p']}";
var ipb_var_cookieid = "{ipb.vars['cookie_id']}";
var ipb_var_cookie_domain = "{ipb.vars['cookie_domain']}";
var ipb_var_cookie_path = "{ipb.vars['cookie_path']}";
//-->
</script>
<script type="text/javascript" src='jscripts/ipb_global.js'></script>
<!--ipb.javascript.end-->
<div class="borderwrap">
<div id="logostrip"><a href='{ipb.script_url}'><!--ipb.logo.start-->

woodrow222




msg:1562610
 6:57 pm on Jun 26, 2005 (gmt 0)

(i'm running 2.0.4)

krt1




msg:1562611
 11:44 pm on Jun 26, 2005 (gmt 0)

ini_set is a PHP command meaning it has to be contained in <?php and?>
IPB may have some different methods of handling this and may still try to output it as normal text in which case you should seek further help from someone who know more about IPB. Try starting a new topic for your problem.

woodrow222




msg:1562612
 4:03 am on Jun 27, 2005 (gmt 0)

are you saying it should be like so:

<?php ini_set('session.use_trans_sid',false); and?>

woodrow222




msg:1562613
 5:47 pm on Jun 27, 2005 (gmt 0)

?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Community Building and User Generated Content
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved