views:

133

answers:

0

Hello,

I'm creating a custom authentication handler in phpBB3 so that it's integrating into an existing website, and so members don't have to log into and create accounts on both the main site and the forum area.

I've taking the existing DB authentication file auth_db.php, copied it, renamed it auth_whb.php, and set that as my authentication handler in the phpBB3 administration panel.

I then re-wrote the SQL query contained in the file to hit my existing members table instead of the table created by phpBB3 and all's well. I get a success message when I specify an existing account's username and password; however, it does not seem to be saving this in the session. Instead, when I navigate away from the success page I'm logged back out.

So my question is this: how do I save an authentication session? Are there any tutorials on the Internet that goes over implementing a custom authentication handler step-by-step, as I've searched and could not find one suitable. The closest I came was the official phpBB3 wiki that had a short entry on custom authentication handlers, but didn't go much further into the steps after what I had already done.

Any help on this would be most grateful. Even a pointer to a suitable resource.

Thanks in advance.