The form cannot be displayed in the browser because the use of session cookies has been disabled in the current browser settings. In order to load the form, session cookies must be allowed

I am working on SharePoint 2013 environment, and when I tried to submit a page for approval.

Submit for approval

I got the following error: (In IE 11 and Google Chrome)

The form cannot be displayed in the browser because the use of session cookies has been disabled in the current browser settings. To load the form, session cookies must be allowed.

the form can not be dispalyed because cookies
 I tried to do the following:

  • I changed my IE setting to “always allow session cookies”.
    • From Tools > Internet Options > Privacy Tab > Advanced.
  • I added Site URL to Compatibility View List.
    • From Tools > Compatibility View Settings.
  • I added Site URL to Local Intranet Sites.
    • From Tools > Security > Local Intranet.
  •  I cleared cache and cookies.
    • From Tools > Internet Options > General > Browsing History > Delete.
  • I turned off Pop-up Blockers.
    • From Tools > Pop-up Blockers > Turn off.
  • I tried accessing the form on different machines and browsers.

But unfortunately, the problem still persists,

Cause :

This issue might occur because of

  1. You have any ‘_’ characters in host names.
  2. HTTPOnlyCookies” attribute is setting to True in Web Config file.

Solution :

Regarding Cause (1):

  • Internet Explorer doesn’t accept cookies with host names that contain the “_” character, so you could
    • Use other browsers.
    • Or remove “_” from your host name.

Regarding Cause (2):

  • HTTPOnlyCookies” attribute is setting to True in Web Config file.
    • According to Microsoft: “HTTPOnlyCookies” MUST be set to false. Otherwise, it breaks all Workflows WebForms, including the WebForms in InfoPath, etc.
    • Therefore, below: you should set “HTTPOnlyCookies” In Web Config file to false by following the mentioned below:
      • Locate the Web config file of the web application.Web.config
      • Open it with appropriate Editor.
      • Search for HTTPOnlyCookies and set it to false.httponlycookies
      • Save and close.
      • Repeat the previous steps to all SharePoint Servers.
      • Go back to submit your workflow form that should be working correctly.Start Approval Workflow

Enjoy 🙂

Advertisements

4 thoughts on “The form cannot be displayed in the browser because the use of session cookies has been disabled in the current browser settings. In order to load the form, session cookies must be allowed

  1. Thanks for your information. However, regarding cause #2, is there a way to make SharePoint workflows work without setting the HTTPOnlyCookies to false?
    Thanks

    Like

    1. Hi Iman, you are welcome 🙂 regarding your question as I above mentioned and according to Microsoft: “HTTPOnlyCookies” MUST be set to false. Otherwise, it breaks all Workflows WebForms, including the WebForms in InfoPath,

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s