Forums / Cotonti / Support / Sharing the sed_users database

robofreak111
#1 2009-05-22 03:30
I currently have a site that is the home for a network of sites I want to set up using the Cotonti CMS. I was wondering if there was a way to allow it so that when someone registers on any of the sites on the network, they automatically register for all the other sites in that network as well.

Thanks for the help
Lombi
#2 2009-05-22 04:27
Yes, simple as heck. I already explained this in another topic, but I can run over the basics here as well.

Basically you put all the three dbs into one mysql database, having all of them different, apart from them sharing sed_users. you put sed_users into all three and it's done.

You need to do this to sed_users, sed_groups_users and sed_auth.
<a href="http://www.domenlo.com">Surreal Art</a>
Orkan
#3 2009-05-23 23:41
Well, I tried this on two sites powered by Seditio, but I believe Cotonti has no difference here.
I think its important to mention some other problems you may encounter:

[list=1]
  • The $usr['auth'] keeps the cached auth settings for current user. Having two sites with different "rights" means that you'll need two separate auth fields in sed_users table. (plugin required)
  • Cookies cant be shared across different domains. All your sites must share the same "top level" domain in order to keep the user "logged in" between each site.
  • the sed_users table is updated each request, so this may produce a little overhead in database
  • Perl - the only language that looks the same before and after RSA encryption.
    This post was edited by Orkan (2009-05-24 00:24, 14 years ago)
    robofreak111
    #4 2009-05-24 04:36
    Thank you both very much, i got it working now.
    Thanks again