Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Delete cookies in site information

I’m building a web app using Angular. I want to delete cookies, which is shown in site information

enter image description here

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

But these cookies are not showing in the developer console

enter image description here

I want to delete these cookies using JavaScript. But I can’t even access these cookies using document.cookie. How do I delete these cookies using JavaScript? Any solutions? Feel free to use Jquery or npm package.

>Solution :

What you are trying, removing cookies, might not be possible to do directly from the browser via JavaScript.

I cannot confirm from your pictures, but from your problem I deduce that the cookies that are not showing on the developer console or on document.cookie have the flag HttpOnly this attribute prevents the access to this cookies via JS, from MDN:

Use the HttpOnly attribute to prevent access to cookie values via JavaScript.

You can find more information about the topic and cookies in general in the MDN documentation.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading