- 1 Where does Google Chrome store passwords
- 2 How to use separate cookies in incognito mode?
- 3 How to create different user profiles
- 4 How NOT to create different user profiles for use with iMacros
- 5 How to enable iMacros for Chrome for different user profiles
- 6 Chrome Command Line Switches
- 7 See Also
Where does Google Chrome store passwords
Google uses SQLite as the storage mechanism for passwords and other web page related data.
The saved password data is stored in an SQLite database located here:
<UserName>\AppData\Local\Google\Chrome\User Data\Default\Login Data
To perform the encryption (on Windows), Chrome uses a Windows API function which makes the encrypted data only decipherable by the Windows user account used to encrypt the password. So essentially, your master password is your Windows account password. As a result, you get the same kind of security as if you would store all passwords in a plain text file and protect this file with the Windows Encrypted File System (EFS).
Currently, Chrome creates a fresh, empty cookie jar when "New Incognito Window" is invoked. This cookie jar is shared among all incognito windows and tabs, and will only be destroyed when the last incognito window/tab is closed. In constrast, IE and Firefox do not share cookies between there private sessions.
Solution: Create different user profiles for each instance, this keeps the cookies separated.
How to create different user profiles
What most people want to do is create shortcuts for each Chrome profile they want to use. So that when activated, Chrome brings-up a new window for a specific profile. To do this:
Copy & paste the Chrome shortcut on your desktop, right-click it, go to Properties, and make it look something like this:
And Chrome will either create or use a pre-existing profile that is there, depending on if it exists or not. Of course, you can choose any location you like. Chrome also creates the folder if it does not exist!
How NOT to create different user profiles for use with iMacros
Do not use the "Add new user..." button in the Chrome Settings, use the method specified above.
Do not confuse the "right" option above with the "udd" option described below, which we do not recommend. The "udd" option is Windows-specific and thus might not be supported in the future:
If you add "--enable-udd-profiles" to the the target field of your chrome shortcut it will enable chrome's built in profile support. Just to clarify your shortcut target (on XP anyway) should look something like:
"C:\Documents and Settings\<user>\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --enable-udd-profiles
Open Chrome from that very link and type CTRL+M, which opens the window in which you can create a new user.
This creates a shortcut that will take you to your profiled version of Chrome.
How to enable iMacros for Chrome for different user profiles
- Use the instructions above to create the profile.
- Make sure the iMacros add-on is installed in each profile.
- In order to launch Chrome with a different user profile via the iMacros scripting interface (e.g. iimOpen("-cr -crUserDataDir C:\MyProfile")) or with iimRunner (e.g. iimOpen("-cr -runner -crUserDataDir C:\MyProfile")), you need to allow access to file URLs:
- Go to Tools - Extensions and click the small triangle next to the iMacros add-on
- Make sure "Allow access to file URLs" is checked
Chrome Command Line Switches
Google Chrome has a number of command line switches which change the behavior of Chrome, some of these switches can be turned on/off in the regular settings menu such as “dns-prefetch-disable” however others cannot.
To launch and use the switches, you append the switch name when calling Chrome on launch like:
Which would obviously execute the crash test function.
Here are some more switches:
For an up-to-date list please see the URLs above.