Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Charles Harpke](https://uploads.teamtreehouse.com/production/profile-photos/955572/micro_Photo_1.jpg)
Charles Harpke
33,986 PointsYou can access a cookie by name using the method on the Request object named
This should be clearly discernable in the video, but I am finding this not to be the case.....
1 Answer
![Craig Dennis](https://secure.gravatar.com/avatar/950c867932cc1483d8aa3dad92c4cb81?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Craig Dennis
Treehouse TeacherHi Charles Harpke !
Here's the Spark documentation on Cookies. Does that help? Is the cookie just not showing up?
Let me know if you are still having problems, and we'll get you sorted out!
![Charles Harpke](https://uploads.teamtreehouse.com/production/profile-photos/955572/micro_Photo_1.jpg)
Charles Harpke
33,986 PointsWell....wondering if the quiz question expects some verbiage I'm not getting.... I can see the Spark documentations says: request.cookie("foo"); // access request cookie by name the quiz question doesn't accept any variation on that.
Without giving me the answer.....am I on the right track anyway? lol
![Aaron Campbell](https://uploads.teamtreehouse.com/production/profile-photos/8224262/micro_ironman_III.jpg)
Aaron Campbell
16,267 PointsLike he mentioned, the problem is that the answer is not taking any form of the syntax. We know what the answer is. The quiz isn't taking it.
![Craig Dennis](https://secure.gravatar.com/avatar/950c867932cc1483d8aa3dad92c4cb81?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Craig Dennis
Treehouse TeacherThe method name is cookie
. Does that work for you? I just tested and it does for me.
![Aaron Campbell](https://uploads.teamtreehouse.com/production/profile-photos/8224262/micro_ironman_III.jpg)
Aaron Campbell
16,267 PointsYes, that worked for me!
It was confusing, because we figured you wanted the whole method, like cookie() or request.cookie() or whatever. So simple, and here we are, making it complicated. XD
Thanks, Craig!
Charles Harpke
33,986 PointsCharles Harpke
33,986 Pointsrequest.cookie("foo"); // access request cookie by name
Nope.....doesn't fit in the response....