About 484,000 results
Open links in new tab
  1. How to read a HttpOnly cookie using JavaScript - Stack Overflow

    In a session riding attack, the attacker can do almost anything that the logged user could do - even without access to the session id stored as a cookie value. People have too much faith in …

  2. Secure cookie configuration - Security on the web | MDN - MDN Web Docs

    May 5, 2025 · Cookies that don't require access from JavaScript should have the HttpOnly directive set to block access, such as from Document.cookie. It is particularly important that …

  3. Using HTTPOnly and Secure Cookies on web servers: how to Do it

    Nov 23, 2023 · Let's simplify the implementation of HttpOnly and Secure flags for cookies in Apache: HttpOnly Flag: Open your Apache configuration file. Locate the configuration file for …

  4. Any reason NOT to set all cookies to use httponly and secure

    May 25, 2018 · The httponly flag is used to prevent javascript from accessing sensitive cookies like the session cookies in the event of a successful Cross-Site Scripting (XSS) Attack.

  5. Secure Cookies and HTTPOnly Attributes for Better Security

    Nov 4, 2024 · The Secure attribute allows your cookies to be only transmitted when the connection is encrypted through HTTPS, while the HTTPOnly attribute prevents cookies from …

  6. TrustedSec | AppSec Cheat Sheet: Session Management

    2 days ago · Find more details about the secure attribute here. HttpOnly prevents JavaScript from accessing the cookie value, protecting against session tokens being stolen through cross-site …

  7. How to set cookie secure flag using javascript - Stack Overflow

    May 15, 2016 · Set secure cookie. res.cookie("name", "value", { secure: true }); Read this cookie. req.cookies["name"]; When the Secure attribute is set on a cookie, the browser will include it in …

  8. Understanding HttpOnly Cookies and Security Best Practices

    Apr 6, 2025 · HttpOnly cookies are special browser cookies with an added security feature that prevents client-side scripts from accessing the cookie data. When a server sets a cookie with …

  9. How to fix Session Cookie attributes not set application hosted in …

    Nov 7, 2024 · Set Cookie Attributes in Code: Configure session cookies with Secure, HttpOnly, and SameSite attributes in the application code. Secure = true, // Only send over HTTPS …

  10. HttpOnly Flag – Protecting Cookies against XSS - Acunetix

    Aug 24, 2020 · The HttpOnly attribute protects cookies from theft by telling the web browser that the cookie can only be accessed through HTTP, not JavaScript.

Refresh