MyBB Community Forums

Full Version: In what session or cookie variable userid is stored?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to integrate login in MyBB with several pages on my site.
I mean, user should login in forum, but when, after this he goes out to a specific page, script of that page should get his id.

I found http://phpdave.com/MyBBIntegrator but it is seems to be overkill for me.
Is there a way to solve my problem without including forums scripts (without require_once 'forum/global.php')?
Isn't it just few code lines?


1. I changed cookie path to "/"
2. Then I should start session/
3. Then I should get this session variable with user's id . Or is it in the cookie?

In what session or cookie variable userid is stored?
mybbuser
in the form: uid_loginkey
(2010-03-05, 11:55 AM)Yumi Wrote: [ -> ]mybbuser
in the form: uid_loginkey
Thanks!

is it session, or cookie?
Cookie.
Your probably better off including global.php and using the MyBB global variables.
http://community.mybboard.net/thread-62056.html
http://community.mybboard.net/thread-60422.html