![]() |
Logout Session Hash
I want a link on my main site to log out of the forums if you're already logged in, but there's this session hash which I have no idea how to get.
Like: login.php?do=logout&logouthash=[something] Can anyone help me? Thanks! |
Taken from navbar
HTML Code:
<a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a> |
This is the variable used:
PHP Code:
|
Thanks, but how do I get the variable to work? :l I'm linking to log out from my main site which has no connection to the forum except it tells you if you are logged in or not.
|
How are you able to tell if the user is logged in or not? Do you know which code in the script is determining this?
|
I use the cookies set in their browser to tell if they are logged in. But I couldn't find "logouthash" in any of the MySQL tables so I have no idea how they get it...
Thanks for your help! :) |
From functions.php / fetch_userinfo
PHP Code:
|
Ooh thanks a ton! :)
|
Quote:
**cookie_salt is your license |
All times are GMT. The time now is 01:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|