Page 41 of 80
Posted: Mon Apr 05, 2010 6:32 pm
by theo
Posted: Mon Apr 05, 2010 6:54 pm
by negzee
Posted: Mon Apr 05, 2010 8:47 pm
by Kimiko
I just read the assignment. Wow, it tells you exactly how the data should look. One cookie per stored address. They're simply numbered as Adress1, Adress2, etc. The page 3 tip tells you to use some separator to distinguish between the parts of the address, in case you hadn't figured that out yet. I don't think using straight HTML in there is a wise thing to do. If you want to use that to print out the addresses directly, you leave your program wide open for malicious code inserted into the strings. I doubt that the teacher will test that, but it would be a bad habit to pick up.
Posted: Mon Apr 05, 2010 9:09 pm
by Maxine MagicFox
Posted: Mon Apr 05, 2010 9:26 pm
by Kimiko
You shouldn't assume that all cookies are ones set by this program. Assume that there are lots and lots of cookies, only a few of which you are interested in. So, check the name of the cookie first, before trying to do anything with the value of it.
Posted: Mon Apr 05, 2010 9:28 pm
by theo
Posted: Mon Apr 05, 2010 9:30 pm
by Maxine MagicFox
Posted: Mon Apr 05, 2010 9:33 pm
by Maxine MagicFox
Posted: Mon Apr 05, 2010 9:34 pm
by Kimiko
Posted: Mon Apr 05, 2010 9:36 pm
by Kimiko
Posted: Mon Apr 05, 2010 9:39 pm
by Maxine MagicFox
Posted: Mon Apr 05, 2010 9:43 pm
by Maxine MagicFox
Posted: Mon Apr 05, 2010 9:45 pm
by theo
Posted: Mon Apr 05, 2010 10:05 pm
by theo
Posted: Mon Apr 05, 2010 10:28 pm
by Kimiko