Please upgrade here. These earlier versions are no longer being updated and have security issues.

How to change Sign Out URL ?

How to change Sign Out URL ? I am using theme Bootstrap version 2.3.2by Kasper Kronborg Isager
I read on other topics but not able to find the exact path of the file.
Please give me the absolute path name of the file to which changes has to be made. Also what changes has to be made ?

Tagged:

Comments

  • peregrineperegrine MVP
    edited August 2015

    what changes has to be made ?

    is this a riddle. you are the only one who knows what you want to change it to.

    Please give me the absolute path name of the file

    how can we give you the absolute path, we don't know your server setup

    here is a relative path conf/config.php

    $Configuration['Garden']['Authenticator']['SignOutUrl']         = '/entry/signout/{Session_TransientKey}?Target=%2$s';
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • edited August 2015

    You have posted the same code somewhere in other topic. I tried this earlier but nothing happened.
    I mean to say absolute path from vanilla installation...
    Note: I have enabled jsConnect plugin

  • peregrineperegrine MVP
    edited August 2015

    You have posted the same code somewhere in other topic

    where? always nice to reference links. if you are going to reference somewhere.

    you could try this as well.

    if you want to create a bootstrap.after.php file in conf folder

    <?php if (!defined('APPLICATION')) exit();
    
    if (!function_exists('SignOutUrl')) {
       function SignOutUrl($Target = '') {
          if ($Target) {
             // Strip out the SSO from the target so that the user isn't signed back in again.
             $Parts = explode('?', $Target, 2);
             if (isset($Parts[1])) {
                parse_str($Parts[1], $Query);
                unset($Query['sso']);
                $Target = $Parts[0].'?'.http_build_query($Query);
             }
          }
    
          // redirect to yahoo.com
          $Target="http://www.yahoo.com";
    
          return '/entry/signout?TransientKey='.urlencode(Gdn::Session()->TransientKey()).($Target ? '&Target='.urlencode($Target) : '');
       }
    }
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    Irfanalam123
  • Thank you. Thats what I needed for current.

    Earlier I had created bootstrap.before.php upon reading somewhere. It disables sign out button.
    but your's bootstrap.after.php worked for my current need...

Sign In or Register to comment.