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

  • SEARCH
  • Home
  • 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 198913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:58:42+00:00 2026-05-11T16:58:42+00:00

I know from this question that Firefox 3.0 and up stores its cookies in

  • 0

I know from this question that Firefox 3.0 and up stores its cookies in an SQLite database. My question is: can you access this database from other desktop programs in such a way that you could add a cookie?

I realize this has security implications. However, I do not want to read them at all. I want to be able to set one cookie if possible. I don’t even want to overwrite a cookie. I just want to add it if it isn’t there already. This is sort of a personal project I’m working on for fun.

This question is mostly language agnostic. I would prefer a solution in C#, but proof of concept in any language will suffice.

Extra credit: It would be cool to set the same cookie in Internet Explorer, too

  • 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-05-11T16:58:42+00:00Added an answer on May 11, 2026 at 4:58 pm

    For FF3, you can access the cookies.sqlite file with any SQLite wrapper – however, check whether FF is running – it may be write-locking the file (not tested).

    The database contains this:

    TABLE moz_cookies (
        id INTEGER PRIMARY KEY, 
        name TEXT, 
        value TEXT, 
        host TEXT, 
        path TEXT,
        expiry INTEGER, 
        lastAccessed INTEGER, 
        isSecure INTEGER, 
        isHttpOnly INTEGER
    )
    

    Not sure about the primary key, it looks like it is a unix timestamp of when the cookie was created; expiry and lastAccessed are also unix timestamps, the rest is self-explanatory.

    Try an INSERT INTO moz_cookies and see if FF becomes immediately aware of the new cookie or if it requires a restart.

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

Sidebar

Related Questions

I have a database that stores images which can be access via a primary
I would like to know how I can show the output from this piece
How would I remove a view from this dialog? I know I can remove
I know this question will sound like a from the past thing but I
All, I know that there is this question already out there: jquery file upload
I know how to create a job dynamically from this create-sql-server-job-automatically The issue I
Does anybody know why the same code from this page http://emacsformacosx.com/ would not render
How to cut part from this string... abb.c.d+de.ee+f.xxx+qaa.+.,,s, ... where i know position by
I'm having trouble getting any information to display from this query. Anyone know where
You may know this recommendation from Microsoft about the use of exceptions in .NET:

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.