Link Members Login with Forum Login

Banjax

New Member
Hi everyone. I am in the process of making my site and the whole site is basically a members only site therefore i am making a Members login. I have no trouble making the Members login. The one thing i am having trouble with is figuring out how if at all possible can i connect the members login to the forum login so that members do not have to login twice. this is a very vital part of my site and any input is greatly appreciated.
 

smoovo

New Member
Forum and members area login handler (PHP)

You can use cookies or sessions. I don't know what you built or how you build it, but I'm assuming you are using server side language with database, so you are familiar with those.

So just use a variable that hold value which is tells the forum and the members area that the client is logged in.

For example.

PHP:
session_start();

if (isset($_SESSION['logged'])) {
    /* The Page... */
} else {
    echo "This is a members area, please login.";
    /* Login form */
}

- Enjoy, and good luck. :)
 
Top