PHP Classes

File: readme.MD

Recommend this page to a friend!
  Classes of Mateo   Netscape Cookie   readme.MD   Download  
File: readme.MD
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Netscape Cookie
Store and retrieve cookie values in Netscape files
Author: By
Last change:
Date: 7 months ago
Size: 671 bytes


Class file image Download

Netscape Cookies


composer require mateodioev/netscape-cookie


use Mateodioev\NetscapeCookie\{Config, Cookie, FileHandler};

$cookieJar = new FileHandler((new Config)
  ->setDir(__DIR__.'/cookies', true)

  ->add(Cookie::create('', true, '/', true, 0, 'test', 'test'))
  ->add(Cookie::create('', true, '/', true, time() + 3600, 'test1', 'test2')


# Netscape HTTP Cookie File
# File generate by	TRUE	/	TRUE	0	test	test	TRUE	/	TRUE	1666764937	test1	test2