5

I am testing web applications. I therefor always need a browser that does not have any cookies, saved logins, etc. Put shortly: a fresh instance.

As we just work with Chromium, I wonder how to start such an fresh instance.

I don't want to set up my regular Chromium installation to not save cookies and such. I want an extra instance.

mcbetz
  • 3,009
  • 7
  • 28
  • 40

2 Answers2

5

There is a flag in chromium, which when set starts Chromium with a temporary profile: --temp-profile

I have the following script that I use when I want a clean instance of chromium:

#!/bin/bash
chromium-browser --temp-profile $*
Ciro Santilli OurBigBook.com
  • 26,663
  • 14
  • 108
  • 107
Dave Smith
  • 137
  • 1
  • 8
3

There are two ways to solve that problem:

  1. Open a new window in Incognito mode (Ctrl+Shift+N) (thanks to @Salem) for temporary usage
  2. Create a new profile with chromium-browser --user-data-dir=/new/directory. In this new profile, you can switch off all cookies, plugins, etc. and restart it with the same command whenever you need it.
galoget
  • 2,943
  • 2
  • 20
  • 24
mcbetz
  • 3,009
  • 7
  • 28
  • 40
  • BTW those options can also be accessed with a right click on the Chromium launcher icon (with Unity). – Salem Jun 05 '13 at 11:32
  • Opening an incognito window does not *guarantee* a fresh instance. Multiple simultaneous incognito windows will share a context. – Brent Bradburn Jan 14 '20 at 06:15