If you intend to create a stable, popular implementation of the forum software, in almost all cases it would be better to use the forum user authentication, rather than your own.
However, if you are trying to use your own authentication system, you can probably keep two isolated, but combined. I mean, in the registration system of your own software, go to the forum registration method. Thus, as soon as you register on your website, he will also create a forum account.
If you want a single authentication session to authenticate both on your website and on the forum, you will need to download the information about the forum session at the login. Many forum software versions have hooks that you can call. SMF, from what I remember, had an API that allowed me to perform many of these tasks.
sohum
source share