Persistent cookie overwrite session cookie

In this code:

<!-- Begin code -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-ES">
<head>
<title>cookie</title>
</head>
<body>
<script>
function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
</script>

<script>
setCookie( "svalores", "yyyyy", null, "/", ".grcdevsql.com", null );
</script>
End
</body>
</html>
<script>
var expiration = new Date();
expiration.setTime( expiration.getTime()+ (60000*60*24*2) );
setCookie( "svalores", "xxxxx", expiration, "/", ".grcdevsql.com", null );
</script>
<!-- End code -->

With internet options:
1.Block first-party cookies
2.Block third-party cookies
3.Always allow session cookies

In IE6 the cookie "svalores=yyyyy", and in IE7 the cookie is not present.

Is this correct?

Thanks.
[2648 byte] By [mdav] at [2008-3-3]
# 1

I can confirm your results and I have posted a test page here:

http://www.bayden.com/test/sessioncookie.htm

We'll look into this for IE8.

EricLaw-MSFT at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 2

Ok. Tks.

mdav at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...