Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

myBB and CI logins

$
0
0
Hi,

I have a CI website with a login system, that recognises users and admin_users nicely. Admin users can access the admin pages as expected etc.

What I want is to add to the backend for admins only, a myBB forum for internal communication (specifically the exploring of ideas and issues, not chit chat). However I do not want the users to have to log in again.

On a post in the myBB forums it says something like

Quote:If you have an authentication system already in place and want MyBB to authenticate against that, probably the easiest method is to forge a cookie to trick MyBB into thinking a particular use is logged in, via cookies. (set $_COOKIES['mybbuser'] before the session is loaded, example:
PHP Code:
PHP Code:
// assume $uid contains the userid of the user
$user = get_user($uid);
$_COOKIES['mybbuser'] = $user['uid'].'_'.$user['loginkey'];  
Last post in https://community.mybb.com/post-231194.html

Has anyone done this with CI and myBB?

I think I should just install it and try it out. Just thought I would ask for any advice, code snippets or experiences of others before doing it.

Thanks in advance,

Paul

PS If it is too painful I might just do a simple thing myself, but if it is going to be used seriously, I thought why not use myBB as it seems to do an excellent job on the CI site.

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>