Hi,
Ik heb deze code:
<?php
$cookie_time = time()+31536000;
setcookie ("id0","php",$cookie_time,"/","domain.nl",0);
?>
<html>
<head>
<title></title>
</head>
<script language="JavaScript" type="text/javascript">
function cookie(nummer){
<?php
$cookie_time = time()+31536000;
?>
document.cookie = ('id' + nummer) + "=javascript; expires=<?php print "$cookie_time"; ?>; path=/; domain=domain.nl; secure=0;";
}
</script>
<body>
<a href="javascript:cookie(1);">id1</a>
<a href="javascript:cookie(2);">id2</a>
</body>
</html>
Als ik met Mozilla (1.1b) op de 2 hyperlinks klik heb ik totaal 3 id's in mijn cookie staan. (1 met php en 2 met javascript)
Maar als ik met Internet Explorer (6.0) op de 2 hyperlinks klik heb ik er maar 2. (1 met php en 1 met javascript)
Is het mogelijk om met Internet Explorer in totaal 3 id's te krijgen zoals bij mozilla...
Ik heb deze code:
<?php
$cookie_time = time()+31536000;
setcookie ("id0","php",$cookie_time,"/","domain.nl",0);
?>
<html>
<head>
<title></title>
</head>
<script language="JavaScript" type="text/javascript">
function cookie(nummer){
<?php
$cookie_time = time()+31536000;
?>
document.cookie = ('id' + nummer) + "=javascript; expires=<?php print "$cookie_time"; ?>; path=/; domain=domain.nl; secure=0;";
}
</script>
<body>
<a href="javascript:cookie(1);">id1</a>
<a href="javascript:cookie(2);">id2</a>
</body>
</html>
Als ik met Mozilla (1.1b) op de 2 hyperlinks klik heb ik totaal 3 id's in mijn cookie staan. (1 met php en 2 met javascript)
Maar als ik met Internet Explorer (6.0) op de 2 hyperlinks klik heb ik er maar 2. (1 met php en 1 met javascript)
Is het mogelijk om met Internet Explorer in totaal 3 id's te krijgen zoals bij mozilla...