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 🙂

7 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

    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,

  2. above given solution is not working for me , i checked in my web.config the parameter httponlycookies is not available , still i am getting this error,

  3. inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you !

  4. It’s the first time I visited this blog but will not be the last,thanks for sharing your useful knowledge

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top