Skip to main content
5-Regular Member
Aug 31, 2016 6:01 AM UTC
Question

How to Customizing the Log out Button in Windchill 10.2 ?

Hi folks,

Want to add log out functionality (Cutom Button) in Windchill 10.2?

This topic has been closed for replies.

11 replies

19-Tanzanite
Aug 31, 2016 12:32 PM UTC

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.

javascript:document.execCommand("ClearAuthenticationCache", false) ;window.location.reload();

8-31-2016 8-27-11 AM.png

Translate
MarcoTosin
21-Topaz II
Aug 31, 2016 1:26 PM UTC

It works also with Firefox, but as written below.

javascript:window.location.href=window.location.href.replace(/:\/\//,"://dummy@");window.location.reload();

Translate
Marco
1-Visitor
Aug 31, 2016 1:25 PM UTC

You have it already in WC 10.2, but by default it is disabled, you need to enable it to be visible.

Translate
14-Alexandrite
Aug 31, 2016 2:36 PM UTC

Mohan,

How do you enable this?

Translate
1-Visitor
Aug 31, 2016 6:00 PM UTC

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"

Translate
1-Visitor
Oct 24, 2016 11:31 AM UTC

Hi Mohan,

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).

Translate