question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support manually roll the cookie?

See original GitHub issue

To extend the session in the client side, by now I have to set the rolling field to true, but that would cause every request carries the set cookie header.

Could provide a method such as req.session.rollCookie() which allow us roll client side cookie manually?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dougwilsoncommented, Jan 9, 2020

Hi @Piccirello I think this is a different use-case. For example, with static files, it probably isn’t just that you don’t want to roll the cookie, but do you even need to go through all the work to load the session at all? If you structure to not invoke the session middleware for static assets, it would not only not roll on those responses, but skip all the work of loading the session in those cases as well.

2reactions
dougwilsoncommented, Oct 8, 2019

To clarify: you want the behavior of rolling: true, but you just want to be able to choose which responses will have the set-cookie header instead of every response, is that correct?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Best, Least Messy Way to Roll Out Cookie Dough
Rolling cookie dough out can be a messy job. Skip the flour entirely and opt for this parchment paper method instead.
Read more >
How to Roll Out Cookie Dough Evenly (6 Must-Try Tips)
Tip 1 – Find a Flat Surface · Tip 2 – Form Your Dough · Tip 3 – Sandwich Your Dough · Tip...
Read more >
How to Use a Cookie Press: 11 Steps (with Pictures) - wikiHow
1. Roll your cookie dough into a log. Your cookie dough needs to be log shaped so it's thin enough to fit into...
Read more >
Dough Sheeter Demo and Review - The Colorful Cookie
Instead of rolling too much dough manually, this will literally help you be "Rolling in the dough!" Customer service is excellent and if ......
Read more >
Turn cookies on or off - Computer - Google Account Help
On your computer, open Chrome. · At the top right, click More More and then Settings. · Under "Privacy and security," click Site...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found