The previously mentioned ideas should work fine for you. However, to add to the variety, I have two other options for you to consider:

1. Most browsers offer an option to prompt you before storing a cookie. In doing so, many of these browsers show you the contents of the cookie, along with how long the cookie will be valid for. With this method, you know for sure, immediatly, whether or not your application is properly setting cookies. You can easily enable this option by editing your browser preferences, and looking for the checkbox labeled something like "Ask me before storing a cookie".

2. Some browsers offer a cookie manager, much in the same way that there is a bookmarks, or favorites manager. For instance, I know Mozilla 0.99 offers such a feature. In Mozilla, if you edit your preferences, and go into your privacy and security tab, click "Manage Stored Cookies", you can see all the settings for each cookie currently on your system.

I wish you luck in using cookies within your application!
-Eric

In reply to Re: VVP: Cookies - what is in them? by andreychek
in thread VVP: Cookies - what is in them? by vivekvp

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.