phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Running another board on a subdomain

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Running another board on a subdomainPosted: Sat Jul 01, 2006 10:53 pm    Post subject: Running another board on a subdomain

I'm sure this has been coverd many times. I've toyed with it before setting up test boards on a subdomain. I noticed that I had log in issues between my regular board and the test board. The subdomain would be for a friend who needs to host thier shoutcast radio station and I would need to freely monitor both my forum and the subdomains forum as Admin without getting logged out all the time from both forums.

Is it that I have to have two seperate cookie path names? or do they have to be the same?

Any help is appreciated, Thanks

_________________
Juarol.com
| Frekuenciadigital.com |
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Running another board on a subdomainPosted: Sat Jul 01, 2006 10:59 pm    Post subject: Re: Running another board on a subdomain

Well, to be able to use the same sessions in the main domain and sub-domains you need to set you cookie domain to .example.com (noticed the dot ?), your cookie path to / and to set the same cookie name for both forums.

Everything should then work fine.

Note that this is only possible with the same main domain, and could not be done this easy with two different domains installed.

This is due to the way cookies where designed, for security reason, cookie cannot be used across different domains.

++

_________________
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
Visit poster's website
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Running another board on a subdomainPosted: Sun Jul 02, 2006 12:59 am    Post subject: Re: Running another board on a subdomain

Hmm by .domain you mean for both? or for the main... either way I try it, one forum looses it's path to sign in. the login.php page is there, but once I sumbit to login, I get a 404.

both boards cookie domain is .domain.com


both the cookie names are the same.

and both cookie paths are /

Or if I can login just fine in both forums, I just can't remain logged in to both. what am I doing wrong?


Thanks

_________________
Juarol.com
| Frekuenciadigital.com |
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14131

Running another board on a subdomainPosted: Sun Jul 02, 2006 9:06 am    Post subject: Re: Running another board on a subdomain

Well all the sudden I am not sure about what you want to do here.

If you which two forum to share sessions, you'll have to make them share at least a part of the DB, for the two forum sot use the same user base, like here basically.

here some doc about how to do it : http://www.phpbb.com/kb/article.php?article_id=55

Once this is done, the cookie setting I gave you can make sens, because you need the user accounts to exist in both forums to be able to keep sessions Wink

If not, then, do not put the same cookie name I'd say, for the two forum to work well independently (no crossed sessions).

Proceed with cautious here if you work on sharing your actual user bases, it's not hard to do, but you'll have to be prepared and to have run local testings I'd say before you go online with such changes.

Here is an handy SQL command to get rid of table prefix if you go for it :

Code:
ALTER TABLE phpbb_table RENAME table;


++

_________________
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
Visit poster's website
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Running another board on a subdomainPosted: Sun Jul 02, 2006 11:44 pm    Post subject: Re: Running another board on a subdomain

Oh no, I just wanted to be able to manage two different boards. I wasn't looking to share DB and sessions, although thanks for the link.. it has useful infomation. I got it working now. it was dificult changing cookie names... had to use Starfox tj's toolkit MOD to get in.



Pete

_________________
Juarol.com
| Frekuenciadigital.com |
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: