Summary: Talk page for Login Logout.
Users: +4 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.


To make this a little prettier, I created a page Main/LogOut which contains only:

(:redirect HomePage:)

then added this to local/config.php:

if (@$_GET['from']) {
  $page = PageVar($_GET['from'], '$FullName');
  if ($page == 'Main.LogOut') $PageRedirectFmt = '<h5><i>You have logged out.</i></h5>';

then placed this link in the sidebar:

(:if authid:)
[[Main/LogOut?action=logout | Log Out]]

Clicking on the link will then log you out, take you back to the homepage, and place the message "You have logged out." at the top of the page. And the "Log Out" link will only show when you're logged in.



Talk page for the Login Logout recipe (users).