Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 10:34 pm EDT

Geeklog Forums

1 database for multiple sites


seanst

Anonymous
I have created two sites using the same database now I want users to be able to log in once and surf both sites. Does anyone know how to do this. Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
To be recognised as a logged-in user, you also need a cookie from the site you're visiting. But site A can not set a cookie for site B ... You would have to add some code that makes site A accept the cookie from site B and vice versa. bye, Dirk
 Quote

Status: offline

Creator

Forum User
Full Member
Registered: 07/11/02
Posts: 181
Location:Austin, TX
Correct me if I'm wrong, but can't you use some PHP code to set an extra cookie in header.thtml?---L. Whitworth www.finiserv.com
L. Whitworth
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Apart from the fact that header.thtml wouldn't be the best place for that: If you have two domains, say aaa.com and bbb.com, then bbb.com can not set a cookie for aaa.com - a cookie is always tied to the domain it's coming from. If your sites are on subdomains or subdirectories of the same domain, then setting a second cookie should work. bye, Dirk
 Quote

Anonymous

Anonymous
How about using the CMS Bridge Rocky
 Quote

seanst

Anonymous
Thanks for the help, These sites are under the same domain. Does anyone have an example of this that can be used with Geeklogs. The help is greatly appreciated.
 Quote

seanst

Anonymous
Thank you for the posts... One more question for the experts, I have set up one domain with two installations where each installation has a different table into one database. My first question is this correct. I am trying to have it set up so that two different departments can upload their own information, have their own look, but allow the user to only log in to one or the other using the same username and password. Second question is this possible to do and how. Next as far as setting cookies. Has anyone attempted this and is there any examples out there to show what needs to be included to make this work. Any help would be great.
 Quote

All times are EDT. The time is now 10:34 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content