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 1040853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:16:32+00:00 2026-05-16T15:16:32+00:00

I generate the jQuery cookie using this code: $.cookie(‘queueView’, ‘value’, { path: ‘/’ });

  • 0

I generate the jQuery cookie using this code:

$.cookie('queueView', 'value', { path: '/' });

assuming that the path is set to the root, hence “/”. When i go to a different page, and on a different folder level, the cookie is suddenly gone only to find out that it became unique to a particular web page in my site.

What i would like to do is to have that same cookie available throughout the website.

Hope you guys can guide me, thanks!

  • 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-16T15:16:32+00:00Added an answer on May 16, 2026 at 3:16 pm

    I use the following to save the cookie:

    jQuery.cookie('queueView', 'value', { expires: 14, path: '/' });
    

    and to read the cookie:

    var data = jQuery.cookie('queueView');
    

    Try to set expires on yours.

    Hope it helps!

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

Sidebar

Related Questions

I am using this code to create a cookie with JQuery: $.cookie('MyCookieName', 'myValueHere'); It
For some reason when I generate this using jquery to fill in my table.
I generate HTML using jQuery: $(<a />) .append(demo) .click(function () { DemoFunc(event, value.Id) })
I am using this jquery plugin to generate QR Codes from string: https://github.com/jeromeetienne/jquery-qrcode It
I am using this function to get a cookie and write its value on
I'm looking to generate random similar colors using jquery. It is my understanding that
I have a form that uses jquery to generate rows of input fields these
JQuery-ui will generate a div with a calendar-div class. Sadly this div is no
How to generate page numbers like the below using javascript/jquery? If the 5 th
Ref: Loading gravatar using jquery I am using the above method to generate the

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.