Logout Redirection
From EZProxyWiki
Contents |
Basic Logout Redirection
Useful if you want to log users out of EZProxy and redirect them to a URL - especially when developing apps that use the SSO functionality.
logout.htm file
Add the following code to the top of your logout.htm file:
function checkQS(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
window.location = pair[1];
}
}
}
</script>
then change the <body> tag to incorporate
<body onload="javascript:checkQS('url');">
logout from your app
To log out of EZProxy from your application you can now use the URL:
http://ezproxy.my.lib/logout?url=http://www.my.lib.edu
Other Solutions
If when you log out you always want to send users to the same URL it may be easier to do a html redirection
<html>
<head>
<title>EZProxy Logout/title>
<META HTTP-EQUIV="Refresh"
CONTENT="5; URL=http://www.my.lib.edu">
</head>
<body>
You are now logged out of EZproxy....
</body>
