Is it possible to use PHP in reading cookies set by JAVASCRIPT?
I do this when I need to set a cookie in php.
$the_cookie = $login . ":" . $passwd;
header ("Set-Cookie: the_cookie=$the_cookie; expires=Friday, 16-Jan-2037 00:00:00 GMT; path=/;");
This is how I set the same cookie in JS
var login = "<? echo $login; ?>";
var passwd = "<? echo $passwd; ?>";
var the_cookie = login + ":" + passwd;
document.cookie=the_cookie;expires=date;
Can I use php to read a cookie set by javascript?
I tried already without success. But what I've learned about cookies is that sometimes they give me strange results on my system, even when everything is actually working ok.
Thanks.
Richie Akins.