Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

jsConnect auto signout problem

This discussion is related to the Vanilla jsConnect Auto SignIn addon.
Dennis43Dennis43 New
edited February 2015 in Vanilla 2.0 - 2.3

Im trying to use the auto signout code but it doesnt working. It keeps me login in the main (Laravel) site so it keeps auto re-login in the forum too

In the config.php im having
$Configuration['Garden']['Authenticator']['SignOutUrl'] = 'http://domain.com/logout'; /Its the logout url of the main site

In the boostrap.before.php
<?php if (!defined('APPLICATION')) exit();
function SignOutUrl($Target = '') {
$SignOutUrl = C('Garden.Authenticator.SignOutUrl','/signout/{Session_TransientKey}?Target=%2$s');
$SignOutUrl = FormatString($SignOutUrl,array('Session_TransientKey'=>Gdn::Session()->TransientKey()));
$SignOutUrl = sprintf($SignOutUrl,($Target ? '&Target='.urlencode($Target) : ''));
return $SignOutUrl;
}

Any ideas how to fix this?

Thanks in advance :)

add_warman

Comments

Sign In or Register to comment.