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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Windchill - Login and Logout Easily

slawson
1-Visitor

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
vmg
7-Bedrock
7-Bedrock
(To:slawson)

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

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

vmg
7-Bedrock
7-Bedrock
(To:slawson)

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

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

vmg
7-Bedrock
7-Bedrock
(To:slawson)

ya i got it now.

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

It works in mozilla firefox.

ks-2
8-Gravel
(To:slawson)

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

pwyndham
12-Amethyst
(To:slawson)

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

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
breed
12-Amethyst
(To:slawson)

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.

BineshKumar1
13-Aquamarine
(To:slawson)

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

shughes
4-Participant
(To:slawson)

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.

Try this for the URL in IE:

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

shughes
4-Participant
(To:slawson)

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

?

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

shughes
4-Participant
(To:slawson)

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.

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

STEVEG
21-Topaz I
(To:slawson)

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

cpitzer
2-Explorer
(To:slawson)

Works like a charm in CHrome!  Thanks!

Announcements


Top Tags