How can I set and get cookies (server side) in Meteor?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Meteor does not currently have a supported way to use cookies on the server.
You can use cookies on the client, though. Here’s a snippet to show a splash screen the first time the user visits a page:
You could use a similar approach and set the cookies in client side code, then send the results to the server in a method call.