User database for multiple sites

I don’t know if this has more to do with SQL, PHP, or both, but if

I have a standard install of FluxBB 1.4.7
I have full access to an SQL database that is used for it and
I wish to use the same user table for another site (along with sessions), how would I do that?

How do I connect all the sites to one table of users, have a one login and one register page (replacing the FluxBB ones), and have the session for being logged in connect to all the sites, so I can switch sections without having to log in again?

I know this may sound very easy to some, but I am a beginner at PHP. Thanks for any help.

For the database, depending where it is hosted you can simply connect to it as you would on the normal site.

As for sessions, this technically isn’t possible as session variables or cookies are unique to a site (unless you have it via subdomain)

Assuming by “via subdomain” you mean that the site is simply on a different subdomain, then yes, it is via subdomain.

Then you could try access the $_SESSION variable as you would normally. if it doesn’t work then you can’t

Sponsor our Newsletter | Privacy Policy | Terms of Service