| |
|
| :: |
| Author |
Message |
jeff_j_dunlap
Joined: 13 Mar 2008 Posts: 21
|
Posted: Thu Mar 27, 2008 8:01 pm Post subject: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
Dear Advanced SEO Users:
My URLs are always well written when I am not logged in (as GUEST). Unfortunately, when I log in, the URLs are badly written .
Please see each of the URLs below are 1) Board index, 2) Forum, and 3) Topic. All in respective order.
**Good URLs created by SEO Advanced when not logged into Forum (GUEST):
/phpbb3/
/phpbb3/music-rizzle-f24/
/phpbb3/music-rizzle-f24/rizzle-girl-guy-t12.html
**Bad URLs created by SEO Advanced when logged in (NON-GUEST):
/phpbb3/?sid=eb84e9b37be9f525c14939b2ef475da1
/phpbb3/music-rizzle-f24/?sid=eb84e9b37be9f525c14939b2ef475da1
/phpbb3/music-rizzle-f24/rizzle-girl-guy-t12.html?sid=eb84e9b37be9f525c14939b2ef475da1
**Shouldn't the Non-Guest URLs created by SEO Advanced be something like:
/phpbb3/index.php?sid=eb84e9b37be9f525c14939b2ef475da1
/phpbb3/viewforum.php?f=24&sid=eb84e9b37be9f525c14939b2ef475da1
/phpbb3/viewtopic.php?f=24&t=12&sid=eb84e9b37be9f525c14939b2ef475da1
Why is Advanced SEO creating the bad URLs on my forum when a user is logged in?
Thank you for your time,
Jeff |
Last edited by jeff_j_dunlap on Fri Mar 28, 2008 12:55 am; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
jeff_j_dunlap
Joined: 13 Mar 2008 Posts: 21
|
Posted: Thu Mar 27, 2008 8:21 pm Post subject: Re: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
Is there any way to set Advanced SEO so that it only rewrites phpBB URLs only when the user is a GUEST (not logged into forum)?
I see no benefit to optimizing phpBB URLs when logged into the forum since search engines will not log in.
I really don't know if my configuration is correct.
In a nutshell, please note that I did create rewrite rules for Guests and they work great. I did not create rewrite rules for logged in users, and if I need to do so, please let me know and I will create them. This way, I will be able to handle URLs that Advanced SEO creates such as this:
/phpbb3/music-rizzle-f24/?sid=eb84e9b37be9f525c14939b2ef475da1
I just want to make sure that rewrite rules are required for logged in users.
Thanks Again,
Jeff  |
|
|
| Back to top |
|
 |
GoBieN PR0

Joined: 10 Mar 2008 Posts: 73 Location: Belgium
|
Posted: Thu Mar 27, 2008 10:02 pm Post subject: Re: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
Yes, rewrite rules are required for all users. Read the MOD file !
If you would have created the rewrite rules the links would have worked.
The bots don't login but they do read the lins ppl post. |
|
|
| Back to top |
|
 |
jeff_j_dunlap
Joined: 13 Mar 2008 Posts: 21
|
Posted: Thu Mar 27, 2008 11:44 pm Post subject: Re: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
Thanks for responding .
I must have a configuration problem. Please take a close look at the SIDs in my URLs:
**SIDs in URLs created by SEO Advanced when logged on (NON-GUEST):
/phpbb3/?sid=eb84e9b37be9f525c14939b2ef475da1
/phpbb3/music-rizzle-f24/?sid=eb84e9b37be9f525c14939b2ef475da1
/phpbb3/music-rizzle-f24/rizzle-girl-guy-t12.html?sid=eb84e9b37be9f525c14939b2ef475da1
I notice that phpBB-SEO.com creates the same URLs without the SID, regardless if the user is a GUEST or logged in. My forum puts the SID when logged in.
I do have "SID Removing" set to Yes in my class settings. My browser also accepts cookies.
Please Advise,
Jeff |
|
|
| Back to top |
|
 |
jeff_j_dunlap
Joined: 13 Mar 2008 Posts: 21
|
Posted: Fri Mar 28, 2008 5:11 am Post subject: Re: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
Problem solved. It was a cookie problem. For cookie domain, I needed to prefix my domain with a period!  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14854
|
Posted: Mon Mar 31, 2008 7:57 am Post subject: Re: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
| jeff_j_dunlap wrote: | Problem solved. It was a cookie problem. For cookie domain, I needed to prefix my domain with a period!  |
I really wonder why this is not phpBB's default, since almost 100% of website are in the en using sub domains without necessary knowing it.
-www.example.com is a genuine sub domain of example.com, and most of the time, both will work and lead to the same site, but, without the dot you mention, sessions cannot be shared in between sub domains.
So, if you use -www.example.com as a domain and cookie domain, all pages loaded without the www prefix won't be able to start a sessions properly.
Using ".example.com" as cookie domain in all cases seems to me the best option, even if we all should only use one domain for our sites.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
jeff_j_dunlap
Joined: 13 Mar 2008 Posts: 21
|
Posted: Tue Apr 01, 2008 3:02 am Post subject: Re: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
Dear DCZ:
I played around with the settings quite a bit and found the setting you mentioned work best.
I also ran into another weird problem (using the same settings recommended). It is related to phpBB, not phpBB SEO. Maybe you have come across it as well.
The problem happens randomly and involves Firefox and cookies.
This problem is very random but it definately happens. Here is a description:
1) Using Firefox browser, enter your username and password to log in.
2) This takes you to a page which says that "You have been successfully logged in".
3) Before the page in #2 redirects, quickly look at the URL. If it says something like the following URL, it means that once it redirects, you will NOT be logged into the system.
-http://www.example.com/ucp.php?mode=login&sid=f9e722f8bbd1693014259e8c6b243f32
4) After the redirection, you will have a URL similar to this and you will NOT be logged in:
-http://www.example.com/?sid=aba5aa49c4beff5a62eeed7bec2df191
The problem does not happen all the time, which is why it is so weird. The problem does not happen in IE7 (have not tested other versions of IE). Clearing Firefox's cookies does not help either.
I am new to phpBB and phpBB SEO, but in my humble opinion, it seems that phpBB holds the user's session for a while and if you happen to log out and try logging back in, the problem occurs. One thing that I noticed is that phpBB DOES NOT clear cookies automatically when you 'Log Out', therefore, the cookie value is maintained. I am guessing that 'Logging Out' does not eliminate the session on the server either. I don't know PHP, thus this is just a guess.
I can say that I have developed web applications in C++ and I 1) delete the cookie's contents and 2) eliminate the session from the server when the user logs off. This Firefox problem never happens in my C++ application.
I looked in the phpBB forums, and it appears that others have had this problem too. I am not the only one. See this URL:
http://www.phpbb.com/community/viewtopic.php?f=46&t=861625&start=0&st=0&sk=t&sd=a&hilit=firefox+cookies
Anyway, it is NOT phpBB SEO related, but this was actually one of the reasons I had so much domain problems.
Best Regards,
Jeff |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14854
|
Posted: Sun Apr 06, 2008 12:07 pm Post subject: Re: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
From includes/sessions.php :
| Code: | function session_kill($new_session = true)
{
global $SID, $_SID, $db, $config, $phpbb_root_path, $phpEx;
$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
WHERE session_id = '" . $db->sql_escape($this->session_id) . "'
AND session_user_id = " . (int) $this->data['user_id'];
$db->sql_query($sql); |
The sessions is dropped upon log-outs.
And the cookies are cleared too in the same method :
| Code: | $cookie_expire = $this->time_now - 31536000;
$this->set_cookie('u', '', $cookie_expire);
$this->set_cookie('k', '', $cookie_expire);
$this->set_cookie('sid', '', $cookie_expire);
unset($cookie_expire); |
But your problem is related to log-in so, it should be related to how the redirect url is built in the login_box() function (includes/functions.php), could be because an outdated SID was sent by FF, most likely retrieved from an outdated cookie when a user did not log-out but let its sessions expired. If so, the redirect url could still hold the outdated SID, this would explain the problem, since loading a page with an outdated SID, even when properly logged in will result in a sessions drop.
Other possible reason could involve the information sent by the browser, such as User Agent, phpBB3 will check many things before the sessions is validated.
Take a look at your phpBB logs, you may find messages providing details about sessions drop.
Was this reported as a bug at phpBB.com ?
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
jeff_j_dunlap
Joined: 13 Mar 2008 Posts: 21
|
Posted: Mon Apr 07, 2008 10:44 pm Post subject: Re: No SID in URLs as Guest, SIDs in URLs when logged into forum |
|
|
DCZ:
Thanks for responding.
I am on a W2003 Web Ed server, and a few days ago, I modified the permissions on all directories.
I honestly don't know what the cause was but this random problem has not happened anymore.
If I observe this behavior again, I will let you know but for now, problem gone.
Again, thank you for helping me out. |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|