This isn't an answer to your cookie problem, as much as it is a comment on your web-store design. You are better off not using cookies, instead store the information in a db of some kind on the server. People can refuse cookies, change cookies,and otherwise mess up your store.
I guess if you are just trying to learn what cookies are, it's OK, but your store will be better in the long run, if you don't rely on them. Its is a good topic for discussion in your class.... cookies..good or bad?
For instance, cookies might be useful to temporarily store an unfinished order for a day or two. But still store the actual order in a db, and send an "encrypted cookie" which just holds the key to the saved db entry.
I'm not really a human, but I play one on earth.
flash japh
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.