Cookie error
I have this script for login (<?php$value="$userName,$password";
setcookie("ephemeral",$value,"","/");
header("Location: profile/index.php");
?>)
and I recive this error:
Warning: setcookie() expects parameter 3 to be long, string given in /home/estudio/public_html/b2b/board/login2.php on line 3
Warning: Cannot add header information - headers already sent by (output started at /home/estudio/public_html/b2b/board/login2.php:3) in /home/estudio/public_html/b2b/board/login2.php on line 7
On the oldest server woork fine but at this...
It's a server with RedHat 7.3, WHM/Cpanel4.
Who can help me please?
Thank you