Not sure if any of the available code executions would work from within a mashup using the expression widget, but you can give it a try.
Here's an article from stack overflow: https://stackoverflow.com/questions/8155064/how-to-programmatically-empty-browser-cache
My requirement is to clear Thingworx catch after the user logged out from the Twx.
Currently, the Thingworx catch allow the user to log in to the composer without asking the password.
kindly suggest me any solution for that.
Strange. If you do it the standard way through the Logout Button mashup widget, the users should not be able to reconnect after that. For that I have to ask -- how do you log your users out? Do you use Logout Button or Logout Link widgets? Do you have any custom authenticators?
Thank you for your inputs, Constantine.
I am already using a Logout widget that is available in the marketplace.
when the user logout the first time means the session terminated properly. The right next time the logout button not clearing the session.
That's why I am searching for a solution.
What version of ThingWorx do you use? I believe that at least in 7.4 Logout Button is available out of the box, there's no more need to install it from Marketplace. Can you try with the standard widget? Also, it looks like in 8.4 we also have a Logout Link widget (I'm not sure whether it's part of the core platform or Manufacturing Apps though) -- can you try it as well?
I am using Twx 8.3.3, I checked both the package version of the logout button (1.0.0 & 8.4).
But the problem continuing.
Just my two cents. I would suggest opening a Tech Support call with PTC regarding the Logout Button which doesn't work as expected. This way they will be able to resolve the issue with standard functionality and you won't have to support it yourself. The workaround for removing JSESSIONID that I mentioned requires writing extensions or setting up an external HTTP server, and even though it is not complex, but you will have to maintain those solutions.