Refer to the amn pages for CGI::Cookie or HTTP::Cookie. Following is an excerpt from first.
fetch returns an associative array consisting of all cookies returned
+by the browser. The keys of the array are the cookie names. You can i
+terate through the cookies this way:
%cookies = fetch CGI::Cookie;
foreach (keys %cookies) {
do_something($cookies{$_});
}
value()
Get or set the cookie's value. Example:
$value = $c->value;
@new_value = $c->value(['a','b','c','d']);
value() is context sensitive. In an array context it will return the c
+urrent value of the cookie as an array. In a scalar context it will r
+eturn the first value of a multivalued cookie.
expires()
Get or set the cookie's expiration time.
So try to get all cookies and set their expiration time to not specified (e.g. by setting the value to the number zero), though the cookie will be deleted after session ends.
But only the server who wrote a cookie can have access to it :-)
Have a nice day
All decision is left to your taste
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.