I am trying to redirect my user by checking a cookie using Cloudflare workers. The cookie name I m setting is login=true. So if the cookie exists user goes to app.xyz.com and if it doesn’t exist user goes to xyz.com. I have written a cookie setting function inside the login func. But safari won’t allow me to set the cookie for more than 7 days. How can I fix this problem?.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Can the _csrf cookie on the hosted login page have a shorter max-age? | 2 | 3438 | February 11, 2019 | |
| Cookies are not set after Authorization on my SPA | 0 | 897 | May 11, 2023 | |
| Store auth0 jwt token in the cookie | 2 | 4130 | February 23, 2020 | |
| Check if user is authenticated from an external marketing website (webflow) | 2 | 15 | November 14, 2025 | |
| A cookie associated with a cross-site resource at http://auth0.com/ was set without the `SameSite` attribute | 21 | 13339 | October 2, 2020 |