Cookie no more set if previously deleted
-
Hi,
I’ve noticed a possible bug and I wish to report it.
The issue is related to thepower_stats_tracking_code
cookie.
This cookie is sended to the browser usingsetcookie
php function.The problem is that if a user temporary delete the cookie, for example using the browser settings, this cookie will be removed permanently. from this point, If I continue to navigate the website I’ve lost the cookie. and this maybe could lead to error in reporting the statistics.
Maybe, editing the if statement in wp-power-stat.php (line 356) as follow
if (self::$data['id'] > 0 || self::$options['extend_session'] == 'yes' || !isset($_COOKIE['power_stats_tracking_code']))
could resolve the problem.
- The topic ‘Cookie no more set if previously deleted’ is closed to new replies.