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
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'] = ''; /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 :)



Sign In or Register to comment.