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

Python

Y B
Y B
14,136 Points

Flask cookies

I don't quite understand the challenge question below on cookies?

Set a cookie named "name" to "Treehouse"

resp = make_response() resp.set_cookie(----,----- )

Should it be something like? resp.set_cookie('name', ???)

Y B
Y B
14,136 Points

I'm still stuck on this. I've tried every variation of name and Treehouse I can think of as the key and value for the cookie but still no luck. This is the last thing I have to do in this course.

Any mods have an idea what I'm doing wrong?

Thanks

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Y B;

Have you tried 'name' in the first blank and 'Treehouse' in the second?

Ken

Y B
Y B
14,136 Points

Thanks I really thought I had tried that, but I just tried again and it works. Must have been a typo the first few times.

I had this issue too. I swear I also tried that first...and it said it was wrong. Hmm.