Developer tools Cookie editor not working

Not reproducible Issue #15081312

Details

Author
Rob S.
Created
Dec 13, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
41.16299
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

When editing cookies in the developer tools, the edited cookie never gets set. Even after multiple refreshes.
See attachment for a video showing the result after editing a cookie. I’m using the PHP script below. I’ve tested this in Firefox and Edge. In Firefox it is possible to edit, in Edge it was possible but not with Edge 41.16299.15.0, EdgeHTML 16.16299.

<?php
$expire = time()+60;
setcookie("user", "User1", $expire);
?>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Login with Cookies</title>
    </head>
    <body>
        <?php       
        if (isset($_COOKIE["user"]))
        {
            echo "Welcome <b>" . $_COOKIE["user"] . "</b>!<br>";
        } 
        else
        {
            echo "Welcome guest!<br>";
        }
        ?>
    </body>
</html>

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Assigned To to “edgedevtoolstri@microsoft.com”

    Changed Assigned To from “edgedevtoolstri@microsoft.com” to “Rob P.”

    Changed Status to “Confirmed”

    Changed Status from “Confirmed” to “Not reproducible”

  • Hello Rob, thank you for your feedback!  I am unable to reproduce this issue at this time, although to be fair, I did not validate with your PHP script.  I may also have some settings set differently than you, so I’ll try to provide some remediation steps.  Here’s what I did for reduction:

      1. Go to http://www.html-kit.com/tools/cookietester/ 
      2. Click the “Set Test Cookie” button.  This will cause the page to refresh and set a cookie, with a name like TestCookie_Name_201712190222 and a value like TestCookie_Value_230222.  Once the browser refreshes, it will say in the yellow box, “Number of cookies received: 1” and have the test values that were set.
      3. Open F12 Dev Tools, navigate to the Debugger tab, and open the Cookies entry in the list view
      4. Double click on the entry for cookietester.  You should see one entry, corresponding to the values that were set.
      5. Double-click on the value field for the cookie in question, and change it to hello 
      6. Refresh the browser window.  Once the page refreshes, it will say in the yellow box, "Number of cookies received: 1", and the value of that cookie should be hello

    This suggests that the issue may be in your PHP script or the web server, rather than with the browser.  For what it’s worth, I’m not a PHP expert, but I did spin up an ASP application in IIS that mimics the functionality, and was still unable to reproduce the issue.  If these steps are not sufficient to remedy your problem, I would suggest:

      * Ensure that the “Always refresh from server” button on the Network tab is selected.  (It’s possible that your page is being caught up in the cache because it’s so small)
      * On the page request (after the faulty request reissue), inspect the request using the Network tool.  On my request, after editing of course, the “Request Headers” section of the request includes an entry of Cookie: TestCookie_Name_201712190130=hello.  If this is not the case, let us know.

    Thanks again for the feedback, and for using Microsoft Edge DevTools.

  • Hello Rob,

    Thank you for looking into this. It seems like I’ve wasted your time a bit. The cookietester site works perfectly, so it must be something on my end. I’ll try and figure it out. I did notice that the cookie gets set correctly, but it must be something with my server that is wrong. (I’ve used the attached script for a long time now, it worked perfectly all the time to explain cookies)

    Anyway thank you for your time!

    Kind regards,

    Rob

You need to sign in to your Microsoft account to add a comment.

Sign in