| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
mgl
Joined: 30 Sep 2007 Posts: 23
|
Posted: Sun Sep 30, 2007 2:26 pm Post subject: SID |
|
|
Hello!
First of all, I want to congratulate the team of phpbb-seo, for their excellent work! I believe you are without any doubt the authority in phpbb seo!
What brings me here, is the fact that the sid gets "attached" at the end of the link for all guests. I have modified the append_sid function in includes/sessions.php, but the sid still gets appended.
| Code: | function append_sid($url, $non_html_amp = false)
{
global $SID;
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
$url = $phpbb_seo->url_rewrite($url, $non_html_amp);
// www.phpBB-SEO.com SEO TOOLKIT END
if ($userdata['user_id'] == ANONYMOUS)
{
//No SID for you!
return $url;
}
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}
?> |
Can anyone tell me what's wrong?
cheers
EDIT: I just noticed I posted on the wrong forum, I would appreciate if any mod would move it to the right place  |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
mgl
Joined: 30 Sep 2007 Posts: 23
|
Posted: Mon Oct 01, 2007 12:45 pm Post subject: Re: SID |
|
|
Humm, no I just added the
| Code: |
if ($userdata['user_id'] == ANONYMOUS)
{
//No SID for you!
return $url;
}
|
I thought that was enough |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |