After Serverchange - Cookies do not work

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

After Serverchange - Cookies do not work

Postby Tabernus » Thu Jan 05, 2012 10:36 am

Hello,

if have read many threads but cant find a solution for my problem. My site runs since many years and cookies always worked. Now we have transferred the domain and site to an new server.
Now the board cookies do not work anymore.

I tried: phpbb.com/kb/article/fixing-incorrect-cookie-settings

My Settings:
Cookie domain: .blu-rayler.de
Cookie name: blurayler_test2
Cookie path: /
Cookie Secure: off
URL: blu-rayler.de/forum/

All Forum URLs are now appended with the session_id cause the cookie does not work. I have changed the cookie settings and deleted all cache-files several times but it still does not work.

If i deactivate seo-rewriting it is still the same error and cookies dont work, so it does not look like phpbb-seo is the problem with that.

If i do Login with my account i am forwarded to blu-rayler.de/forum/?sid=xxxxxxxxxxxxxx.
If i click on a link where the session is not appended i am instantly logged off.

When i do a Header-Check with seoconsultants.com/tools/check-server-headers-tool/#Report i get the following details:

HTTP/1.1 200 OK
Date: Thu, 05 Jan 2012 09:31:58
GMT Server: Apache
Cache-Control: private, no-cache="set-cookie"
Expires: 0
Pragma: no-cache
Set-Cookie: blurayler_test2_u=1; expires=Fri, 04-Jan-2013 09:31:58 GMT; path=/; domain=.blu-rayler.de; HttpOnly
Set-Cookie: blurayler_test2_k=; expires=Fri, 04-Jan-2013 09:31:58 GMT; path=/; domain=.blu-rayler.de; HttpOnly
Set-Cookie: blurayler_test2_sid=8afbcdd530a46a88909604bd7f5fb806; expires=Fri, 04-Jan-2013 09:31:58 GMT; path=/; domain=.blu-rayler.de; HttpOnly
Vary: Accept-Encoding Connection: close
Content-Type: text/html; charset=UTF-8

That looks like Cookie Creating works really fine. But on the next Click, the cookie is destroyed. Can anyone help my with that?
Tabernus
 
Posts: 4
Joined: Thu Jan 05, 2012 10:32 am

Advertisement

Re: After Serverchange - Cookies do not work

Postby Stephen26 » Thu Jan 05, 2012 12:31 pm

Make sure your script path is /forum (phpbb_config -> script_path in the database). You can still login via the Support Tool Kit - http://www.phpbb.com/support/stk/ and use it's "Auto Cookies" feature.

When changing the general cookie settings you should change cookie name too, just add a number or so.

Edit: Altough .example.com is the correct setting for the cookie domain, sometimes just "www.example.com" seems to work from my experience.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: After Serverchange - Cookies do not work

Postby Tabernus » Thu Jan 05, 2012 8:11 pm

Thanks,

the phpbb_config is the same as on the old server and there it worked fine.
I can also login to admin-panel cause when you login to forum the session-ids are appended to the urls and you can read and write in the forum as normal.
But this works only so long the session-id is appended to the url. Do i remove it or follow a link which has no session-id added the user is logged off.

On my old server there where no session-ids on the urls and it worked well with the cookies.
Now it seems that every time i do a login a cookie is created as it should be. (as postet on top) But on the next click it is destoyed and the forums function "append_sid()" adds the session-id to all urls. :cry:
Tabernus
 
Posts: 4
Joined: Thu Jan 05, 2012 10:32 am

Re: After Serverchange - Cookies do not work

Postby Stephen26 » Thu Jan 05, 2012 8:52 pm

What happens if you change cookie path from / to /forum and | or cookie domain from .blu-rayler.de to "www.blu-rayler.de" ? If the usual correct settings don't work there's nothing wrong with trying this out IMHO - as long as you can always change the settings again either via the Support Tool Kit or directly in the database in case access to the ACP is not possible anymore.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: After Serverchange - Cookies do not work

Postby Tabernus » Thu Jan 05, 2012 8:58 pm

I have tried several versions of cookie settings all with the same result.

I just tried your suggestion and it still does not work. :/
Tabernus
 
Posts: 4
Joined: Thu Jan 05, 2012 10:32 am

Re: After Serverchange - Cookies do not work

Postby dcz » Fri Jan 06, 2012 9:50 am

Just in case, have you tried to manually delete all cookies in your browser ?

You do not seem to have made any config mistake, if not enough try another browser / location just to make sure it's not the browser itself.

phpBB Server and Cookie settings
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm

Re: After Serverchange - Cookies do not work

Postby Tabernus » Fri Jan 06, 2012 10:52 am

Thanks.

I testet it in all browsers. opera, firefox, ie, chrome. In my forum all users report the same problems.

I installed a test forum with a brand new phpbb installation on the same url but with a new database and a new directory. and cookies work fine in this forum.

The cookie data, which the phpbb creates seems to be right. So i think that one file or function in phpbb, which controls the cookies, destroys it on the next pageview and creates a new cookie. But how can this be?

Maybe one file get broken on the ftp-transfer?
Tabernus
 
Posts: 4
Joined: Thu Jan 05, 2012 10:32 am

Re: After Serverchange - Cookies do not work

Postby Stephen26 » Fri Jan 06, 2012 3:14 pm

I checked out your site twice today and got this:

Unable to remove files within ./forum/cache/. Please check directory permissions.


Delete all files in the /forum/cache/ folder excluding .htaccess & index.htm and CHMOD 777 the directory.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: After Serverchange - Cookies do not work

Postby dcz » Sat Jan 07, 2012 1:23 am

Yes, it could also be the cache, if it's not writeable, it never got updated and most likely still holds the old config.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm

Re: After Serverchange - Cookies do not work

Postby Stephen26 » Sun Jan 08, 2012 12:06 pm

Problem seems to be solved. Would be great to hear what caused it / how you fixed it.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am


Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 9 guests