on 10-18-2007 12:41 PM
..i want to open the logoff page of the portal after doing WDClientUser.forceLogoffClientUser(null)......
I have set it in the application properties but it redirects to a Web Dynpro internal logoff page......
Anybody??
Hi Kanwalpreet,
Instead of <b>null</b> specify the url where you want to user to navigate after the user has logged off from the application.
WDClientUser.forceLogoffClientUser(http://www.google.com)//just an example
Warm Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kanwalpreet,
Have you created an iview for your webdynpro application and trying to execute it from portal or directly executing it locally giving url.
I have tried the same url in portal and when i clicked on the button it logged me off and redirected to the portal login page.
Warm Regards,
Murtuza
Hi Kanwalpreet,
It seems that the persitent cookies that it create while we log into the portal are not destroyed while you try to log off using the above method. You can redirect to a jsp page wherein you can write a code to delete the sso cookies and then redirect to the logon page.
Warm Regards,
Murtuza
Hi,
In your jsp first write the javascript to delete the sso cookies. Sorry, but I am not having the code snippet with me right now else would have shared with you. After that you can redirect it response.sendRedirect("http://<servername>:<port>/irj//portal?logout_submit=1");
Also, to redirect to your jsp page specify the url of your jsp page in the logoff url:
eg. http://<servername>:<port>/<webmodule>/logoff.jsp
Just try this if you might find luck.
Regards,
Murtuza
m usin this code 2 delete d cookies
function getCookie(NameOfCookie)
{ if (document.cookie.length > 0)
{ begin = document.cookie.indexOf(NameOfCookie+"=");
if (begin != -1)
{ begin = NameOfCookie.length1;
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(begin, end));
}
return null;
}
function setCookie(NameOfCookie, value, expiredays)
{ var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) +
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}
function delCookie (NameOfCookie)
{ if (getCookie(NameOfCookie)) {
document.cookie = NameOfCookie + "=" +
";
}
}
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.