User Logout

Logout is relatively simple, for example:

context://admin/sitemap.xmap
<map:match pattern="logout.html"> <map:act type="auth-logout"> <map:parameter name="handler" value="adminHandler"/> <map:aggregate element="root" label="aggr-content"> <map:part src="cocoon:/headings.xml" element="headings" strip-root="true"/> <map:part src="cocoon:/menus.xml" element="menus" strip-root="true"/> <map:part src="cocoon:/newsArticles.xml" element="news-articles" strip-root="true"/> <map:part src="cocoon:/login.xml" element="content" strip-root="true"/> </map:aggregate> <map:call resource="outputPage"/> </map:act> <!-- If problem --> <map:redirect-to uri="logoutProblem.html"/> </map:match>

A successful logout goes back to the login screen. An unsuccessful logout brings up a suitable error page.

Copyright 2006 – 2024 Hugh Field-Richards. All Rights Reserved.