• Batch file to delete Edge cookie?

    Author
    Topic
    #2646331

    My corp VPN logon croaks unless I delete its cookies in Edge before attempting to log on.  Doing this manually every time is kind of a pain.  Can anyone advise on how I could write a batch file or other automated way to delete a specific set of Edge cookies?  Windows 11.  Thanks.

    Viewing 1 reply thread
    Author
    Replies
    • #2646357

      My corp VPN logon croaks unless I delete its cookies in Edge before attempting to log on.  Doing this manually every time is kind of a pain.  Can anyone advise on how I could write a batch file or other automated way to delete a specific set of Edge cookies?  Windows 11.  Thanks.

      Try the following within Edge. Go to Settings>”Cookies and site permissions” and scroll down the page until you see the area labeled “Clear on exit”. Click the “Add” button in that area and enter the URL of your corporate VPN and then click the blue “Add”button. That should add them to a list of cookies to automatically be cleared every time Edge is closed.

      Ignore the “warning” that says “To clear all cookies and site data when you close Microsoft Edge…”, as that pertains to something that it sounds like you don’t want to do. It sounds like you only want to clear your corporate VPN’s cookies when you close Edge, right? If so, then give the procedure in the first paragraph a try.

      1 user thanked author for this post.
    • #2646392

      Correct, I only want to delete my corp VPN’s cookies rather than all cookies.

      I will try this.  Thanks for your assistance.

       

      FYI:  after attempting to enter *.abc.com and getting an error message, I did some internet research and found that to have that effect you must enter [*.]abc.com in the box.  There was no info on this in the Edge help that I could find.  But it seems to have done the trick.

       

      Thanks again!

    Viewing 1 reply thread
    Reply To: Batch file to delete Edge cookie?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: