PHP Classes

class secure cookie

Recommend this page to a friend!

      PHP Secure Cookie  >  All threads  >  class secure cookie  >  (Un) Subscribe thread alerts  
Subject:class secure cookie
Summary:init $salt
Date:2019-03-06 07:48:16

  1. class secure cookie   Reply   Report abuse  
Picture of Superluk Superluk - 2019-03-06 07:48:16
to init $salt, try it this way:

protected $cookie_name, $salt, $expiry, $path; // important = $salt

public function __construct(string $cookie_name='anonymous', bool $all_subdomains=TRUE) {
$this->cookie_name = $cookie_name;