Framework: Encrypt cookie not work on dynamic cookie

Created on 30 May 2019  路  2Comments  路  Source: laravel/framework

  • Laravel Version: 5.7.2
  • PHP Version:7.3
  • Database Driver & Version:

Description:

vendor\laravel\frameworksrc\Illuminate\Cookie\MiddlewareEncryptCookies.php

THIS FUNCTION SHOULD MATCH DYNAMIC COOKIE LIKE "version_1,version_2,version_3 ...".
this is no way to ingnore cookie for dynamic.
/**
* Determine whether encryption has been disabled for the given cookie.
*
* @param string $name
* @return bool
*/
public function isDisabled($name)
{
return in_array($name, $this->except);
}

Steps To Reproduce:

Most helpful comment

Just override the isDisabled method and do anything you want?

All 2 comments

Just override the isDisabled method and do anything you want?

Thanks sisve.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RomainSauvaire picture RomainSauvaire  路  3Comments

progmars picture progmars  路  3Comments

felixsanz picture felixsanz  路  3Comments

JamborJan picture JamborJan  路  3Comments

CupOfTea696 picture CupOfTea696  路  3Comments