Firefo...:Cookie(3pm)
π Firefo...:Cookie(3pm) π
okay bestie, so this is a User Contributed Perl Documentation page for Firefox::Marionette::Cookie β it's a Perl module (that's the 3pm part, iykyk) and it's literally just the β¨vibeβ¨ of one single Firefox cookie, retrieved using the Marionette protocol. One cookie. Main character energy, honestly. πͺ
β¨ NAME β¨
Firefox::Marionette::Cookie β the module that represents a Firefox cookie you pulled out using the Marionette protocol π¦
πΈ VERSION πΈ
This is Version 1.63 β no cap, that's the one.
π SYNOPSIS π
okay so here's the whole vibe in action:
use Firefox::Marionette();
use v5.10;
my $firefox = Firefox::Marionette->new()->go('https://metacpan.org/');
foreach my $cookie ($firefox->cookies()) {
say "Cookie name is " . $cookie->name();
}
likeβ¦ you spin up a Firefox, you go to a site, you loop through the cookies, you say the name of each one. slay. π
π DESCRIPTION π
This module handles the implementation of a single Firefox cookie using the Marionette protocol. that's it, that's the job, and it does it beautifully π«Ά
π§ SUBROUTINES/METHODS π§
π new
new accepts a hash as a parameter. the allowed keys are below, bestie, so listen up π
http_onlyβ the httpOnly flag on the cookie. allowed values are1or0. default is0. πsecureβ the secure flag on the cookie. allowed values are1or0. default is0. πdomainβ the domain name belonging to the cookie.pathβ the path belonging to the cookie.expiryβ the expiry time of the cookie in seconds since the UNIX epoch. ngl,expirywill returnundeffor Firefox versions less than56. πvalueβ the value of the cookie.same_siteβ should the cookie be restricted to a first party or same-site context. see the MSDN page athttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSitefor the deets.nameβ the name of the cookie.
This method returns a new cookie object. brand new, fresh out the box, iconic. β¨
π http_only
returns the value of the httpOnly flag.
π secure
returns the value of the secure flag.
π domain
returns the value of the cookie's domain. for example '.metacpan.org' π¦
π path
returns the value of the cookie's path. for example '/search' π
π expiry
returns the integer value of the cookie's expiry time in seconds since the UNIX epoch. β°
π value
returns the value of the cookie.
π same_site
returns the Same Site value for the cookie (if any). here's the link if you wanna read up on it: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
π name
returns the name of the cookie.
π DIAGNOSTICS π
None. literally nothing. silence. peace. π§
π CONFIGURATION AND ENVIRONMENT π
Firefox::Marionette::Cookie requires no configuration files or environment variables. low maintenance queen fr fr π
πΈ DEPENDENCIES πΈ
None. she's independent, she doesn't need anybody π¦
π INCOMPATIBILITIES π
None reported. (yet π)
β BUGS AND LIMITATIONS β
to report a bug, or to view the current list of bugs, please visit https://github.com/david-dick/firefox-marionette/issues
bestie, if something's broken, go tell them there. don't suffer in silence. π«Ά
π AUTHOR π
David Dick "<ddick@cpan.org>" β the icon behind all this π
π₯ LICENSE AND COPYRIGHT π₯
Copyright (c) 2024, David Dick "<ddick@cpan.org>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic. β¨
π DISCLAIMER OF WARRANTY π
okay this part is the serious part, no jokes, keep reading:
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
and that's the whole page, bestie!! π this was generated by perl v5.40.1 on 2025-03-16, and the manual is Firefo...:Cookie(3pm). go forth and read your cookies. mwah π
π¦ where this page comes from
- debian trixie: libfirefox-marionette-perl 1.63-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms