It is not a custom button but you could add a favorites that has the following in the Web Document tab URL: box under properties for the shortcut. Then just have that in your favorites bar and select it when you want to logout. It will ask you for a login again. What I am showing you is for Internet Explorer. I do not know if it works with other browsers.
You have it already in WC 10.2, but by default it is disabled, you need to enable it to be visible.
It works also with Firefox, but as written below.
It looks like log off capability is available for form-based authentication and is not available with the default basic authentication.
Anyway to enable the log off -
"xconfmanager -s wt.auth.form.enabled=true -t wt.properties -p"
"xconfmanager -s wt.logout.url=https://ptc.com-t wt.properties -p"
Found a way to clear the basic authentication try this,
window.location = "http://google.com/"; // Put your re-direct URL here
Hi Mohan Kumar
Thanks for sharing this info. I tried setting above 2 properties. Now I can see logout button; however, next time when I try login in, it do not prompt for authentication. It directly log in as previous user.
Any idea on this?
Did the content of the logout.jsp file is replaced with the java script I pasted in my previous comment. When the logoff option is clicked it executes the java script which clears the user authentication followed by URL re- direct, if you try to go back to the page clicking back button in browser or try to access the windchill url from a new tab the authentication window will appear again.
When I try ClearAuthenticationCache in logout.jsp,it is clearing the authentication cache for the remaining sessions in the browser which making them to prompt for login again.
This should not be the case when we implement this within the Windchill Application because we can add the ClearAuthenticationCache url in the browser itself. Could you tell me how to ClearAuthenticationCache for the Windchill session itself(not other sessions).