Skip to content

Commit

Permalink
AD-231 Use same options time on cookie delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Esteban authored and kpicaza committed May 27, 2022
1 parent da51bf5 commit 71256dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sifo/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static public function set( $name, $value, $days = 14, $domain = false, $secure
static public function delete( $name )
{
self::_initDomain();
$result = static::setCookie( $name, '', 0, self::$path, self::$domain);
$result = static::setCookie( $name, '', time() - 3600, self::$path, self::$domain);
if ( !$result )
{
trigger_error( "COOKIE DELETE FAIL: Tried to delete '$name' but failed." );
Expand Down

0 comments on commit 71256dd

Please sign in to comment.