Skip to main content
1-Visitor
Mar 25, 2013 11:52 AM UTC
Question

Windchill - Login and Logout Easily

This is a neat trick I use when developing.

In Windchill it is difficult to 'logout' and then login as another user. To get around this create two browser bookmarks with url format as:

http://username1:password1@windchill-server.ptcnet.ptc.com/Windchill/app/

http://username2:password2@windchill-server.ptcnet.ptc.com/Windchill/app/

This adds the username and password into the http request, so the user is not prompted. This has the added benefit that you can jump user easily in Windchill if you store the url as a bookmark.

This is really useful for demos!

This is an example of one of my bookmarks:

bookmark.png

18 replies

1-Visitor
Apr 8, 2013 1:45 PM UTC

Hi Stephen Lawson ,

I cant set this.

it says windows cant find "http://demo.demo@pc158218.ptc.com/Windchill/app/"

am i doing something wrong in the url ?

thank you

vijayan

Translate
1-Visitor
Apr 8, 2013 3:00 PM UTC

colon (:) between username and password, not period (.)

Translate
1-Visitor
Apr 8, 2013 3:46 PM UTC

http://demo:demo@pc158218.ptc.com/Windchill/app/

tried this one too.. same error

stephen has mentioned like windchill-server- what is it?

please Matthew Knight, can u provide solution to

http://communities.ptc.com/message/201245#201245

Thank you

vijayan

Translate
1-Visitor
Apr 19, 2013 12:12 PM UTC

I think you need to change the address after the @ symbol to the address of your server.

Translate
1-Visitor
Apr 19, 2013 12:26 PM UTC

ya i got it now.

i was trying this in Internet expolrer. but it does not work in IE.

It works in mozilla firefox.

Translate
8-Gravel
May 15, 2013 7:54 AM UTC

Nice trick. But why dont you use New Session to login in to different user in IE? or Multiple profiles in Chrome?

Translate
1-Visitor
May 21, 2013 3:49 PM UTC

I also found this works in Chrome but not in IE. Works nice, thanks.

Translate
MarcoTosin
21-Topaz II
Jun 12, 2015 8:48 AM UTC

In the old PTC/User forum there was another idea, to create a button logout.

In this way, when you click on this button, the system it prompts again for username and password.

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

Logout.PNG

Translate
Marco
12-Amethyst
Jun 12, 2015 2:47 PM UTC

Nice trick but just so readers know this is unsecure as it saves your credentials in text where anyone with access to your system could find it.

Translate
2-Explorer
Jun 12, 2015 6:13 PM UTC

Windchill 10.1 and 10.2 has form based authentication support. This will provide a default button for log out. You can also go one step further and do a SSO configuration

Thanks

Binesh

Translate