Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
Why do my cookies keep getting deleted in my local laravel app in chrome?

Im building a laravel project and cookies I set via JavaScript keep getting deleted, but only in Chrome and only recently, not in Safari or Firefox. What could be the cause? Working on mamp.

I notice that my laravel_session cookie value, that laravel sets, also has a different value each time I refresh the page. Is this by design?

I set the cookies via https://github.com/js-cookie/js-cookie.

(function($, Cookies){
  $(function() {

    var cookiesDefaults = {
            expires: 14
        };

    $('.consent-allow').on('click', function(event) {
        event.preventDefault();
        Cookies.set($(this).data('allows'), true, cookiesDefaults);
        location.reload();
    });
})(jQuery, Cookies);

This used to work for a long time, now it stopped. I added some auth routes, login functionality etc. but I dont see anything that could be a cause. Especially why only in Chrome.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!