This content has been marked as final.
Show 3 replies
-
1. Re: logout from my portal instance
julien1 Mar 30, 2007 10:57 AM (in response to psalvadori)I think you should use the url /logout/location=XYZ in order to go to page XYZ after logout
-
2. Re: logout from my portal instance
psalvadori Apr 2, 2007 6:07 AM (in response to psalvadori)Hi Julien
first of all thanks for your quick response. I tried what you said but nothing better. I didn't understand who intercept the signout request. I suppose that there must be a servlet that do it or something similar but I didn't find it in the source code.
I made an attempt to resolve my problem but I didn't receive any results. I tried to extend the class PageCustomizerInterceptor, the one that insert the logout html code in every logged pages. In my implementation, in the method "injectDashboardNav", I inserted the following code:SignOutCommand cmd = new SignOutCommand("portal/GFPortal/default"); URLContext urlContext = controllerCtx.getServerInvocation().getServerContext().getURLContext(); String logoutURL = controllerCtx.renderURL(cmd, urlContext.asNonAuthenticated(), null);
instead of the original code:SignOutCommand cmd = new SignOutCommand(); URLContext urlContext = controllerCtx.getServerInvocation().getServerContext().getURLContext(); String logoutURL = controllerCtx.renderURL(cmd, urlContext.asNonAuthenticated(), null);
the string "portal/GFPortal/default" is the page where I want to redirect when I signout.
But even in this case nothing happens.
I hope You can help me because it is very urgent for me.
Thanks in advance,
Paolo. -