Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Sign Out not working - SOLVED
LordBosh
New
I have installed the latest version of Vanilla onto our virtualised webserver which is running IIS and the latest version of PHP.
So far everything works fine - can sign in, create and delete discussions etc - but when a user clicks the 'sign-out' button they are returned to the discussions home and remain signed in. No error message is displayed to give any indication of what is or isnt happening.
Any help anyone can offer would be grately appreciated.
So far everything works fine - can sign in, create and delete discussions etc - but when a user clicks the 'sign-out' button they are returned to the discussions home and remain signed in. No error message is displayed to give any indication of what is or isnt happening.
Any help anyone can offer would be grately appreciated.
0
Comments
Thanks
Vanilla Forums COO [GitHub, Twitter, About.me]
'cookie key' obviously changes with each log in.
The cookie would be deleted on closing the browser but not when clicking the Sign Out button.
I have found a work around for this issue though.
It appears that the cookie was deleted if the checkcookie function in class.cookieidentity.php found an error, so i have hijjacked this...by changing the SignOurUrl value in the config.php file to pass a variable and adding an IF check to the checkcookie function in class.cookieidentity.php it now deletes the cookie and signs the user out.
In case anyone else is having this trouble, here is the code i changed:
In config.php -
line 40: $Configuration['Garden']['Authenticator']['SignOutUrl'] = '/discussions?signout=1';
In class.cookieidentity.php -
added the following at line 252:
if ($_GET['signout']==1) {
self::DeleteCookie($CookieName);
return FALSE;
}
Thanks for your comment Tim. I hope this helps anyone else having trouble too.