2009-04-25, 02:54 AM
2009-04-25, 03:39 AM
What do you man by "logout key"?
2009-04-25, 03:52 AM
In the logout link it says &logoutkey=
i need to figure out what that is for the users on my forum.
i need to figure out what that is for the users on my forum.
2009-04-25, 04:01 AM
You mean this: <a href="member.php?action=logout&logoutkey={$mybb->user['logoutkey']}">{$lang->index_logout}</a> |
in: index_logoutlink ????????????
EDIT: I finally realize what this is used for.... (LOL)
If you want to force a user to log out, which is what you might be doing see this plugin: http://mods.mybboard.net/view/admin-can-...s-any-user (it can be used to force log out as well.)
Otherwise, you could veiw your database, which I'm sure has the logout key stored in it.
in: index_logoutlink ????????????
EDIT: I finally realize what this is used for.... (LOL)
If you want to force a user to log out, which is what you might be doing see this plugin: http://mods.mybboard.net/view/admin-can-...s-any-user (it can be used to force log out as well.)
Otherwise, you could veiw your database, which I'm sure has the logout key stored in it.
2009-04-25, 04:38 AM
{$mybb->user['logoutkey']}
yeah the part that gets filled in there is what i'm looking for, but I have no idea where I can find it, I've checked the obvious tables in the database, sessions, and users and haven't found it there.
And I'm not looking to force log out a user. I have forum accounts linked to my main website and so I'm providing a little "Not you?" link which if they choose it will log them out - obviously though I can't do that without the logout key.
yeah the part that gets filled in there is what i'm looking for, but I have no idea where I can find it, I've checked the obvious tables in the database, sessions, and users and haven't found it there.
And I'm not looking to force log out a user. I have forum accounts linked to my main website and so I'm providing a little "Not you?" link which if they choose it will log them out - obviously though I can't do that without the logout key.
2009-04-25, 06:35 AM
Yeah, I see what you mean. I think you would somehow have to invoke {$mybb->user['logoutkey']} <--- your logout key.
although I don't know how.....
I looked for what that calls, and honastly, can't find it.....
although I don't know how.....
I looked for what that calls, and honastly, can't find it.....
2009-04-25, 01:22 PM
Yeah, I'm wondering if they used some kind of encryption of the session id or somtehing to determine the logout key, because I see no where that it calls that either.
Does anyone else know about this?
Does anyone else know about this?
2009-04-25, 01:26 PM
./inc/class_session.php:163: $mybb->user['logoutkey'] = md5($mybb->user['loginkey']);
2009-04-25, 01:33 PM
Awesome! Thanks so much, seeing that it was just the md5 of the login key made it so simple to make it work with my website now.
2009-04-25, 02:35 PM
hmmmm... never would ave seen or thought of that. Interesting. Just the Md5......