cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Windchill - Login and Logout Easily

Highlighted
Newbie

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 18
Highlighted

Re: Windchill - Login and Logout Easily

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

Highlighted

Re: Windchill - Login and Logout Easily

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

Highlighted

Re: Windchill - Login and Logout Easily

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

Highlighted

Re: Windchill - Login and Logout Easily

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

Highlighted

Re: Windchill - Login and Logout Easily

ya i got it now.

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

It works in mozilla firefox.

Highlighted

Re: Windchill - Login and Logout Easily

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

Highlighted

Re: Windchill - Login and Logout Easily

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

Highlighted

Re: Windchill - Login and Logout Easily

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

Marco
Highlighted

Re: Windchill - Login and Logout Easily

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.

Highlighted

Re: Windchill - Login and Logout Easily

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

Highlighted

Re: Windchill - Login and Logout Easily

Is there a way to make this work for Windchill 10.2/IE11? I've tested it, and it works in Firefox (as stated above) but the shop computers, who would be using this trick, are all using IE.

Highlighted

Re: Windchill - Login and Logout Easily

Try this for the URL in IE:

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

Highlighted

Re: Windchill - Login and Logout Easily

i think i'm not getting what you're saying here...

where in firefox it would be: http://user:user@mywindchill_location/Windchill

in IE it would be javascript:document.execCommand("ClearAuthenticationCache", false) ;window.location.reload();http://user:user@mywindchill_location/Windchill

?

Highlighted

Re: Windchill - Login and Logout Easily

The command that I pasted will log out and bring up the login screen for Windchill.  Nothing else should be needed.

Highlighted

Re: Windchill - Login and Logout Easily

while it does that, that's not what i'm looking for. i'm hoping for a login bypass (requested by IT) for users who are looking for drawings on the system. the process above works amazingly well for firefox, but i need something for IE.

our current system gives users the ability, once logged into the computer to pull up drawings. that system is becoming unstable, and the drawings are being imported into Windchill. i need a way to allow those users who definitely aren't power users on any level to get into Windchill without having to log in. i have a profile designed that limits what they have access to, and removes the ability to get to the preferences tab. but, quoting from IT, "if there are ways for people to screw it up, they will" - i'm attempting to limit the chance of that happening.

Highlighted

Re: Windchill - Login and Logout Easily

Another trick if you use Internet Explorer is to use nomerge in the shortcut so you can start multiple different sessions.

For example:

"C:\Program Files\Internet Explorer\iexplore.exe" -nomerge https://windchill.server.address/Windchill

Highlighted

Re: Windchill - Login and Logout Easily

The problem with this is if you are logged in to another site then it will log you out of both.

Highlighted

Re: Windchill - Login and Logout Easily

Works like a charm in CHrome!  Thanks!

Announcements