Welcome to WebmasterWorld Guest from 54.144.68.27

Forum Moderators: rogerd

Message Too Old, No Replies

Session ID

how to get rid of it?

     

jalma

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

10+ Year Member



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

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

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

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

10+ Year Member



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

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

10+ Year Member



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

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

10+ Year Member



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

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

WebmasterWorld Administrator rogerd is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

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

10+ Year Member



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

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

10+ Year Member



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

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

10+ Year Member



(i'm running 2.0.4)

krt1

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

10+ Year Member



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

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

10+ Year Member



are you saying it should be like so:

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

woodrow222

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

10+ Year Member



?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month