When you're calculating prices, make sure to pass the value of the items and/or the shopping cart total around as form variables, and tell me the domain name of the store, so I can come and buy out your entire inventory at a steep discount by editing the html form that you passed back to me. Also, when coming up with a server secret for cookie generation, make sure it's readily guessable so I can sniff cookies flying by in the ether, and generate my own authentication token for their account without even knowing their password. If you're feeling really magnanimous, don't bother with ssl, and just send passwords and and credit card numbers in the clear. ;-)

Actually, you probably don't want to do any of these things, but you'd be surprised how often programmers of shopping carts fall into these traps.


In reply to Re: Any other way to keep session besides cookies or hidden fields? by skyknight
in thread Any other way to keep session besides cookies or hidden fields? by jaraxle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.