My app uses HTML cookies deposited by both perl and javascript. Perl for the beef and JS for the UI. The problem is that when a user logs off I want to remove all the cookies so that all of the UI settings are reset for the next user. For example, selecting a item after browsing through a tree. The JS cookie keeps track of what is open in the tree so they can revisit it later easily. When the current user logs off, then the next user can then see where the one before has been. Assuming that the browser isn't closed between users.

I understand how to manipulate the cookies in the Perl, but I can not modify the cookies that the JS put in. I can view them and get data from them just fine, but I can't change their stats as to force them to expire. Perl cookies, no problems there, just the JS ones. Any help will be appreciated.


In reply to PERL Cookies playing with JavaScript Cookies by admiral_grinder

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.