Aye, I have found this part out but I am wondering how the security token is created, stored, found, etc. I am sharing the session between the forum and our main site but on the main site I need the logout button and for this I require the logouthash / security token creation code.
--------------- Added [DATE]1247746146[/DATE] at [TIME]1247746146[/TIME] ---------------
Never mind, I found the code! To create the securitytoken (which is the logouthash) you do this:
PHP Code:
$user['securitytoken_raw'] = sha1($user['userid'] . sha1($user['salt']) . sha1(COOKIE_SALT));
$user['securitytoken'] = TIMENOW . '-' . sha1(TIMENOW . $user['securitytoken_raw']);