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

306
Views
How to set expiration of a cookie at the end of the day (next.js)?

I'm using react-cookies and I'd like to let a cookie expire at the end of the day (not after 24hrs or at the end of a session BUT at the end of the day).

Here's how I set the cookie:

setCookies("dailyCookie", {
    path: "/",
    maxAge: // should expire at the end of the day, 
    sameSite: true,
  });

I haven't found the right solution, yet (similar questions: set cookie to expire at the end of current day). Any help is appreciated! Thanks!

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!