Problem with cookies in CGI mode

Bluebie, Jenna blueberry at creativepony.com
Sun May 18 19:40:08 EDT 2008


So it took me ages to figure out how to get cookies set in my app, and  
here was the problem.

I'm using camping's built in CGI support, and with that you can have  
something like domain.com/blah/app.rb and that will go to your /  
route, which is okay, except that the path the cookies are set with is  
domain.com/blah/app.rb/

So if you try to use that url, none of your cookies get sent back to  
the server, but if you use domain.com/blah/app.rb/ everything works  
fine. Sure would be good if camping implemented a redirect for that  
situation. :)

—
Jenna “Where's my cookie!” Fox



More information about the Camping-list mailing list