News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

how to hide PHPSESSID?

Started by Spaceman-Spiff, October 14, 2003, 05:38:15 PM

Previous topic - Next topic

[Unknown]


Anguz

Quote from: [Unknown] on December 09, 2003, 03:24:09 AM
That should work.

-[Unknown]

cool, thank you :D

I was wondering if it'd also work putting it a bit later, right before the session thing, since there's no output up that point yet, or am I wrong? and it does make sense to group them... I may be wrong though :P

@ini_set('session.use_trans_sid', 0);
if (function_exists('session_start'))
{
session_start();
$sc = session_id();
}
else
$sc = '';
Cristián Lávaque http://cristianlavaque.com

[Unknown]

Quote from: Anguz on December 09, 2003, 03:29:01 AM
I was wondering if it'd also work putting it a bit later, right before the session thing, since there's no output up that point yet, or am I wrong? and it does make sense to group them... I may be wrong though :P

@ini_set('session.use_trans_sid', 0);
if (function_exists('session_start'))
{
session_start();
$sc = session_id();
}
else
$sc = '';


Of course....

-[Unknown]

Anguz

cool!

I'll add it to the mod then :)

thanks again! ;D
Cristián Lávaque http://cristianlavaque.com

pulpitfire

thanks for the fix.  just one question, though.  does this work with safe server?  i normally can't change the php settings.

[Unknown]

It may not work in safe mode.

-[Unknown]

destalk

It's a funny thing. I have tried tha above solution and also putting the following in my php.ini file:

session.use_trans_sid = 0


and in my .htaccess file;

php_flag session.use_trans_sid off


And neither seems to be able to  stop the PHPSESSID urls being displayed when users visit the site for the first time.

Any other suggestions would be very welcome.

WintermuteX

Quote from: destalk on February 12, 2006, 07:21:19 PM
It's a funny thing. I have tried tha above solution and also putting the following in my php.ini file:

session.use_trans_sid = 0


and in my .htaccess file;

php_flag session.use_trans_sid off


And neither seems to be able to  stop the PHPSESSID urls being displayed when users visit the site for the first time.

Any other suggestions would be very welcome.

BUMP .. i have the same result. SMF 1.1.1 with bloc's helios theme

Advertisement: