Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: is it possible to create a session-surviving cookie with plumber? #87

Closed
Rainer-Kempkes opened this issue Apr 7, 2017 · 1 comment
Milestone

Comments

@Rainer-Kempkes
Copy link

Rainer-Kempkes commented Apr 7, 2017

Hi Jeff,
first I want to thank you for the plumber package - really great work!!
Is it possible to create a cookie with plumber that survives the current session in order to store f.e. something like a permanent visitor-id to track returning users?

Currently I create session cookies with
r$addGlobalProcessor(sessionCookie( "mySecret", "myCookie"))
regards,
Rainer

@trestletech
Copy link
Contributor

trestletech commented Apr 7, 2017

It is not at the moment, but now that you remind me that seems like a pretty gross omission.

I have a TODO for it here: https://github.com/trestletech/plumber/blob/c82f6b3418858b07c6ea60f19c175967fc6fd708/R/response.R#L37

It wouldn't be too painful to add this as a parameter to setCookie and cookieToStr but I'm not sure when I'd be able to get to it.

PRs welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants