Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorDeeJayOdie
    • CommentTimeMay 18th 2008
     
    Does anyone know if there is a way that I can change the page that I go to when I log out of the admin, instead of going back to the login screen?
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 18th 2008
     
    DeeJayOdie,

    This should be in the 'plog-admin.php' file. Find the following:elseif(isset($_REQUEST['action']) && $_REQUEST["action"] == "log_out"){
    $_SESSION = array();
    session_destroy();
    }
    and modifying it as:elseif(isset($_REQUEST['action']) && $_REQUEST["action"] == "log_out"){
    $_SESSION = array();
    session_destroy();
    header("Location: http://yoursite.com/page.html");
    }
    should do it for you (hopefully, unless headers have already been sent).
    •  
      CommentAuthorDeeJayOdie
    • CommentTimeMay 19th 2008
     
    Didn't work
    •  
      CommentAuthorsidtheduck
    • CommentTimeMay 19th 2008
     
    oops! I forgot to add an exit(); command in there so the following code in the script was adding another location header. Your code should be:

    elseif(isset($_REQUEST['action']) && $_REQUEST["action"] == "log_out"){
    $_SESSION = array();
    session_destroy();
    header("Location: http://yoursite.com/page.html");
    exit();
    }
    •  
      CommentAuthorDeeJayOdie
    • CommentTimeMay 19th 2008
     
    Thanks for the help. It worked. They should add that into the script as an admin feature.