Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8211279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:22:36+00:00 2026-06-07T10:22:36+00:00

How read cookie values like expires, httponly, etc? I know I can find all

  • 0

How read cookie values like expires, httponly, etc?

I know I can find all these information in Dev Tools/Resources/Cookies. I read about restrictions in accessing to cookies from JS.

I would like to create chrome extensions with JS which will tell me if the website violate my “default security level” during the time I’m using the website.
For example if the website change the session id while changing http to https, if it allow to send cookies also to subdomains and so on.

Thank you in advance for suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:22:38+00:00Added an answer on June 7, 2026 at 10:22 am

    This is how you should read cookies, according to http://code.google.com/chrome/extensions/cookies.html#type-Cookie :

    chrome.cookies.getAll({ url:... /* more options */ }, function(cks){
          console.log(cks); 
          for(var i=0; i<cks.length; i++){
                 console.log(cks[i].name, cks[i].secure, cks[i].httpOnly); // ...
          }
    }); 
    

    chrome.cookies.getAll has a callback parameter which gets passed an array full of cookie objects. Iterate those objects and you should be able to get their props, make comparisons, etc.

    Make sure you have proper permissions put in manifest file although errors should guide you through.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i read cookie set date? In rails api I can not find
I'd like to read the contents of the bar cookie and store it in
I have the code: $getCookieData = $this->Cookie->read('data'); $getUser = $this->User->find('first', array('conditions' => array('User.username' =>
I set a cookie like this in one page: Request.Cookies[lang].Value = en-US; Request.Cookies[lang].Expires =
I can actually seem to write it fine as a cookie like this: [4c3dd477c441e17957000002,4c2ac3cc68fe54616e00002e,4c3dd477c441e17957000003,4c3dd477c441e17957000004]
I read that in PHP, you can view all the cookies by using print_r,
I need to read some values from cookie or session when I am executing
I am trying to set and then read a Cookie using the Selenium Webdriver.
Q1 I’ve read that when setting the timeout of an authentication cookie, we should
I want to create a cookie using php,an also i need to read it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.