Quote from: sottwell at May 08, 2009, 11:56 AM
Ah, of course. You need some mechanism to clear the session values. That’s why the default weblogin system uses a snippet. It generates the appropriate login form and logout link; you can modify the chunk template it uses for these.
Im not sure i follow completely, but found this line in the weblogin snippet:
<a href=’[+
action+]’>[+
logouttext+]</a>
There is no such placeholders in WebLogInPe though, not sure how to make them.
here is what i found in weblogin.inc.php:
// display logout
$tpl = $tpls[1];
$url = preserveUrl($modx->documentObject[’id’]);
$url = $url.((strpos($url,"?")===false) ? "?":"&")."webloginmode=lo";
$tpl = str_replace("[+action+]",$url,$tpl);
$tpl = str_replace("[+
logouttext+]",$
logoutText,$tpl);
$output .= $tpl;