News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

PHPSESSID even thought I have apache set to have it off

Started by s0me0ne, October 14, 2006, 12:39:28 AM

Previous topic - Next topic

s0me0ne

I keep getting PHPSESSID=########### at the end of my URLS :(

even thougth I have a .htacess file at the root of the forums folder with


php_value session.use_trans_sid 0


I'm not sure what the deal is, all my other websites have that same setting and it works but SMF doesnt like it?  :o

SleePy

Try this:

Open: QueryString.php

Find:

$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . ';', $buffer);


Replace:

// $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')(\?)?/', '"' . $scripturl . '?' . SID . ';', $buffer);


See if commenting that out will stop smf from trying to add the session id...
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

s0me0ne

Thanks that seemed to fix it

I had to just put
$buffer = $buffer; because soemthing was needed after the else  :D

Advertisement: