BR
asked on
php cookie security
Dear Experts,
I'm having a cookie like this to show a banner only once to the user everyday.
should I use a function like htmlspecialchars for security reasons?
thank you
<?php
if(!isset($_COOKIE['counts ss']))
{
$_COOKIE['countsss'] = 0;
}
$countsss = $_COOKIE['countsss'] + 1;
setcookie('countsss',$coun tsss,time( )+60*60*24 ); //24 hours
?>
I'm having a cookie like this to show a banner only once to the user everyday.
should I use a function like htmlspecialchars for security reasons?
thank you
<?php
if(!isset($_COOKIE['counts
{
$_COOKIE['countsss'] = 0;
}
$countsss = $_COOKIE['countsss'] + 1;
setcookie('countsss',$coun
?>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER