Hey Craig, for some reason It won't let me comment again so I have to leave an answer to my own question, I think it's because I've booted in to Ubuntu to test the code. It works great by the way! thank you so much.
I'm using a piece of code so when someone logs in, my ruby creates a cookie and then if the cookie exists, my website doesnt show a log in form, but a welcome 'username' instead.
I have this problem, which is, it detects the cookie fine if all the files are in the CGI bin which is where the cookie is created, but if I try to detect my cookie from another folder, it just doesn't ever seem to register it is there. Do you know why? I have a feeling it is something to do with the cookie path :(