VMware Horizon Community
Mimm
Enthusiast
Enthusiast

One time more: Chrome (cookies)

Hello,

I'm trying to fix my Chrome.ini but I can't see my mistake :smileyconfused:

I've started using Chrome.zip and tried both configs from: Google Chrome - Anyone have a working config file that doesn't suck?

My problem is: Chrome isn't remembering any cookies after UEM's restore.

Restarting Chrome, logout/login -> everything is working fine until I delete the local Windows user profile. The strange thing is: there is a "Cookies" and a "Cookies-journal" in my zipped Chrome file but something is still missing.

DirectFlex is enabled but "Export at logoff" is set.

Any ideas?

Regards,

Mimm

10 Replies
Pieter_S
Enthusiast
Enthusiast

Hi Mimm,

The cookies are stored in the C:\Users\<your_username>\AppData\Local\Google\Chrome\User Data\Default\ folder.

You should include that folder in your configuration.

You should keep track of the size of the zipped settings. They can actually grow fast and that is bad for the overall performance.

/Pieter

Reply
0 Kudos
Mimm
Enthusiast
Enthusiast

Currently I'm using:

[IncludeRegistryTrees]

HKCU\SOFTWARE\Google

[IncludeFolderTrees]

<LocalAppData>\Google\Chrome

[ExcludeFolderTrees]

<LocalAppData>\Google\Chrome\User Data\Default\Cache

<LocalAppData>\Google\Chrome\User Data\Default\old_Cache_000

<LocalAppData>\Google\Chrome\User Data\Default\old_Cache_001

<LocalAppData>\Google\Chrome\User Data\Default\Application Cache

<LocalAppData>\Google\Chrome\User Data\Default\Local Storage

<LocalAppData>\Google\Chrome\User Data\Default\Media Cache

[ExcludeFiles]

*.tmp

I guess cookies are included already?

Reply
0 Kudos
Pieter_S
Enthusiast
Enthusiast

I can advise you to use the configuration Raymond is suggesting in the other post you mention.

You are saving to much unneeded files.

You can check the contents of the zip file if the needed cookies database is included.

Reply
0 Kudos
Mimm
Enthusiast
Enthusiast

Yes, the cookie database seems to be included:

2016-12-12_17h37_26.png

Reply
0 Kudos
Mimm
Enthusiast
Enthusiast

Ok, maybe this is something:

It's look for me like Google changed something back in 2014: windows - Restore session cookies from google chrome userdir (>=20) - Stack Overflow

According to different posts I could find online, Chrome cookies are encrypted nowadays so it's impossible to steal and copy cookies from user to user or machine to machine.

So everything UEM related is working fine except the cookie database restore: I guess this comes from a encryption/decryption key mismatch? My old values are still stored in the SQLite database but Chrome is ignoring these values after restore:

  • Start using a fresh Windows installation (domain joined)
  • First user login (domain user)
  • Local user profile get's created -> starting chrome for the first time -> generating some cookies
  • Delete all Chrome AppData folders and registry keys
  • Restore from UEM repository
  • ==> everything is still working. Cookies are there and useable

Step 2

  • Delete the local user profile copy (C:\Users\USERNAME\... etc.)
  • Restore from UEM repository
  • ==> Chrome is starting and remembering every bookmark and setting but is unable to read the cookie database

So I guess there's some Windows related setting/registry key/file/certifcate etc. I have to backup and restore using UEM?

Reply
0 Kudos
EricNichols
Hot Shot
Hot Shot

Reply
0 Kudos
Pim_van_de_Vis

what OS version and Chrome version are you using?

Reply
0 Kudos
Mimm
Enthusiast
Enthusiast

This is interesting:

Indeed, very helpful - thank you Smiley Wink

"[username]\AppData\Roaming\Microsoft\Protect\[SID]" hasn't been included in my profile config so far. After adding this:

2016-12-23_09h55_52.png

everything is working fine. Chrome is able to decrypt and reuse cookies now Heart

Maybe this dependence is something we should add to the Chrome.ini or mention on the download page?

Mimm
Enthusiast
Enthusiast

what OS version and Chrome version are you using?

Tested with different versions. One of them: Server 2012 and Chrome 55

Reply
0 Kudos
Pim_van_de_Vis

Good catch!

Most customers already have that template, since it's included in the Easy Start configuration.

Feel free to add a comment to the Chrome Template document on this community.

Reply
0 Kudos