diff options
Diffstat (limited to 'httemplate/loginout/logout.html')
-rw-r--r-- | httemplate/loginout/logout.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/httemplate/loginout/logout.html b/httemplate/loginout/logout.html index 33b87fe..5626aa4 100644 --- a/httemplate/loginout/logout.html +++ b/httemplate/loginout/logout.html @@ -1,10 +1,13 @@ -<% $cgi->redirect($fsurl.'?logout=logout') %> +<% $cgi->redirect($redirect) %> <%init> -my $auth_type = $r->auth_type; +# Delete the server-side session +$FS::CurrentUser::CurrentSession->logout; -# Delete the cookie, etc. +# Delete the browser cookie, etc. +my $auth_type = $r->auth_type; $auth_type->logout($r); -#XXX etc: should delete the server-side session + +my $redirect = $fsurl; #.'?logout=logout'; </%init> |