An Alternative To The Evils Of The Incognito Window


An Unnecessary Evil

We've all done it, there's no need to be ashamed.

You're working on an Item in Sitecore and you instinctively press the Ctrl-Shift-N keyboard shortcut to open an Incognito window to test your work.

We've seen countless compatriots use the same approach. Even the Sitecore training documentation suggest we do so. However, the very nature of an Incognito window makes it inappropriate for testing:

  1. No browsing history is saved
  2. Cookies are deleted when the Incognito window is closed
  3. Local and Session storage are cleared when the Incognito window is closed
  4. Unless there's a requirement for testing Incognito windows, your clients most likely won't be browsing your application in one.

If anyone tried to sell you a testing tool, and the fine print elucidated the points above, I don't think you'd find it very useful.

A Better Way

The better way is Browser Profiles.

A Browser Profile is a local, autonomous, distinct user account for your browser. A Browser Profile has its own history, cookies, local and session data store, plugins, bookmarks, etc., and are dead-easy to setup and use.

Some of the ways I use Browser Profiles are:

  1. Creating a unique Browser Profile for each of my Sitecore Personas:
    Now I can test a single pages' personalization for multiple personas simultaneously.
  2. Creating and testing new Sitecore Roles:
    One Browser Profile can be authenticated as a Sitecore Administrator, and the other Browser Profile can be authenticated as the Sitecore Role under development.
  3. Effective ad-hoc testing:
    Browser Profiles overcome all the shortcomings of Incognito windows, as they are normal browser sessions.
  4. An endless supply of "clean" sessions: 
    Which are unsullied by my application's cookies, session data, and browsing history.
  5. An easy way to test browser plugin interactions:
    Simply create a new Browser Profile, install the problematic plugin, and test.
    When your done testing, you can delete the Browser Profile
  6. Etc...

All browsers support Browser Profiles. I'll walk you through creating one in Chrome:

  1. Open Chrome and click the little profile icon in the upper right hand corner, underneath the "Maximize" button.
    In the image below, my profile icon is the ninja:

    Profile Image

  2. In the menu that's produced, click the Manage People menu item:

    Manage People

  3. Which will produce the Add Person dialog. Click the "Add Person" button in the lower right hand corner:

    Add Person Dialog

  4. In the resulting dialog, give a name to your new Browser Profile and select an image.
    Assure that the "Create a desktop shortcut for this user" checkbox is checked, and click the "Add" button.
    Below, I'm creating a new user named "Ganesha", and have selected the origami Elephant image:

    Create Person Dialog

  5. A new browser window will open, using your new Browser Profile. In the image below please note that the little profile icon is the same as my new Ganesha profile's:

    New Browser Session

You can now use the desktop shortcut for quick access, but there is a better way. We can use the Chrome keyboard shortcut chord of Ctrl-Shift-MAll we need do is reprogram a single finger.

- Vic

Categories: Sitecore
Tags: Sitecore;

SEARCH ARTICLES

CATEGORIES

Sitecore 144
Commerce 100
Web Development 100
Sitecore Commerce 83
Sitecore Experience Commerce 9 64
Sitecore Experience Commerce 59
Content Management 55
eCommerce 48
B2B eCommerce 42
Sitecore Experience Platform 39
Sitecore Platinum Partner 39
Architecture 34
Insite 29
User Experience 26
Strategy 22
B2C eCommerce 21
B2B Commerce Blogs 21
commerceconnect 21
CloudCraze 20
SaaS (Software as a Service) 20
Cloud 17
Commerce Server 17
Salesforce B2B Commerce Cloud 16
Mobile 13
Search 13
Plugins 12
Analytics 12
Application Development 12
Digital Transformation 11
Sitecore Symposium 11
SPEAK 10
Helix 10
DMS 8
Social 8
Business Process 7
Authentication 7
5 Reasons 7
BI and Big Data 6
Data Visualization 6
Sitecore Presentation 6
Coveo 6
NET Development 5
Microsoft Azure 5
Automation 5
Front-End Development 4
SaaS (Software as a Service) 4
Digital Strategy 4
Brightcove 4
Press Release 4
Avalara Tax 3
Sitecore Experience Accelerator (SXA) 3
Sitecore Layouts 3
Video 3
SPE 3
Multi-site 3
Multi-lingual 3
Accessibility 3
Habitat 3
Vault 3
Identity 2
Managed Services 2
CDN 2
SMB 2
Cryptocurrency 2
Sitecore Forms 2
Sitecore Experience Commerce 9 Promotions 2
Uncategorized 2
EXM 2
Conversational Commerce 2
Sitecore SaaS 2
Security 2
Unit Testing 2
Headless Architecture 2
Sitecore Experience Awards 2
Google 1
Content Delivery Network 1
Configure Price Quote 1
CPQ 1
Blockchain 1
Coupons 1
Sitecore Rss 1
Artificial Intelligence 1
Machine Learning 1
Okta 1
RFP Process 1
NoSQL 1
Flex Accelerator for Sitecore 1
Reviews 1
SEO 1
Page Labels 1