Teams WebApp Cache Google Chrome

Copper Contributor

Hi Everyone!

In our environment we are trying to use the teams webapp in Google Chrome on "Generic" or "Kiosk" devices. These devices stay logged into the save username all the time. The username they are logged into does NOT have a O365 license so when launching the Google Chrome shortcut to teams, it asks a user to login with their credentials. 

The user logs in and then signs out of our sso system, when the user signs out, it invokes a script which clears google chrome history locations so that the next user isn't logged into the previous users account. 

This has worked with other apps that we use this type of authentication for. However, for Teams, when the next user launches the shortcut, although credentials are cleared by the script, for about 5 seconds it shows the previous users teams screen, chat and all, and then will revert back to the sign-in screen asking for that previous users password or to switch users.

 

Does anyone know of specific cache locations teams writes to in chrome? Below is what i clear so far...

Del /q "C:\Users\%username%\AppData\Local\Google\Chrome\User Data\Default\Login Data" 1>Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Login Data-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Cookies" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Cookies-journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Extension Cookies" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Extension Cookies-journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Favicons" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Favicons-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\History" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\History Provider Cache" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\History-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Network Action Predictor" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Network Action Predictor-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Origin Bound Certs" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Origin Bound Certs-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\QuotaManager" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\QuotaManager-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Shortcuts" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Shortcuts-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Top Sites" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Top Sites-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Web Data" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Web Data-Journal" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Current Session" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Current Tabs" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Last Session" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Last Tabs" >Nul 2>Nul
Del /q "C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\Default\Visited Links" >Nul 2>Nul
Del /q "C:\Users\%username%\AppData\Local\Google\Chrome\User Data\Default\Cache\*" >Nul 2>Nul
for /d %%x in ("C:\Users\%username%\AppData\Local\Google\Chrome\User Data\Default\Cache\*") do @rd /s /q "%%x" >Nul 2>Nul

 

Any help would be appreciated. 

Nate

2 Replies

@Nalves1234 Hi, did you find a solution to this? (sorry just came across it, and noted it's been a while)

 

Have you tried using some of the Chrome functions to clear cache data on exit?

https://support.google.com/chrome/a/answer/10686330?hl=en#zippy=%2Cwindows-group-policy

 

 

@SteveMcMillan Hi Steve, unfortunately our user population is not reliably closing the browser every time for us to depend on it to clear cache, we ended up just killing chrome.exe and deleting the directory C:\Users\%Username%\AppData\Local\Google\Chrome\User Data\ when the users "exit" a session with our SSO software since they reliably do that.

Nate